sourabhaggrawal opened a new pull request #437: URL: https://github.com/apache/pulsar-manager/pull/437
### Motivation Assign resource level read/write access to each role of a user. This way we can assign multiple resources to a user with read/write permission. * A user may exist with multiple resource access where he/she is allowed to only read a particular resource while for other resource it can make changes.* ### Modifications * 1. Added access field at role level which can have read or write as value. * 2. Added tenants field in resourceType list and will list available tenants in resource field while creating a role * 3. Added access map (Map<String,Map<String,String>>) in /usersInfo response, each key is the resourceType and value holds another map with resourcename as value and value as read/write. * 4. Added hasPermissionToResource method in module/users.js which is called for each actionable element when ui is rendered to decide to show/hide the resource based on access. * 5. Changes in .vue file to call the hasPermissionToResource method to decide if user has access to a particular element. ### Verifying this change - [ ] Make sure that the change passes the `./gradlew build` checks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org