-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
permissions: Add PODReadAccess permission #1213
Conversation
4b52f1f
to
a12ac30
Compare
@@ -289,6 +295,7 @@ where | |||
} | |||
PoolRole::LoanAdmin => Ok(self.pool_admin.insert(PoolAdminRoles::RISK_ADMIN)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to this PR, but the naming seems a bit off here, not all pool roles are pool admin roles. I wonder if we should change self.pool_admin
to self.pool
and PoolAdminRoles
to just PoolRoles
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds sane to me. I would be more pro having an additional struct like PoolAdminRoles
and PoolRoles
but this would mean we need to write a migration. So lets keep it simple.
a12ac30
to
032ffb2
Compare
032ffb2
to
2521570
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
@@ -289,6 +295,7 @@ where | |||
} | |||
PoolRole::LoanAdmin => Ok(self.pool_admin.insert(PoolAdminRoles::RISK_ADMIN)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds sane to me. I would be more pro having an additional struct like PoolAdminRoles
and PoolRoles
but this would mean we need to write a migration. So lets keep it simple.
Description
Added
PODReadAccess
permission.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
main
branch