fix: unrestricted drive access only with full account permission#12349
fix: unrestricted drive access only with full account permission#12349jvillafanez wants to merge 1 commit into
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
39778ae to
cc1e619
Compare
2403905
left a comment
There was a problem hiding this comment.
The Space Admin still has full info about the other user. I think it's redundant for them.
I think if it's not breaking changes for the application, we should dissolve for not admin user to get information about another user.
|
The space admin can access to information about the personal space of any user. I think that's the problem we want to solve. Only the admin (not space admin) should be able to access that information.
That should be solved with #12327 , so the space admin will only have access to the "public" information about the user. |
2403905
left a comment
There was a problem hiding this comment.
The Space Admin still has full info about the other user.
|
I think we'll have to adjust the tests. |
|
I'll close this PR and change the approach, given the problem with the tests. I think there have been some confusion between the "Space Admin" user role and the "Space Manager". I'll try the same approach as in #12327 to hide some non-relevant information of the drive if you aren't the admin. |
It doesn't seem very useful. It will break the web UI since most of the drive information is being shown. In order not to break the web UI we might hide only a couple of drive attributes. The majority of the drive attributes need to be available for the web UI. |
Description
Only accounts with "full account access" permission (usually admins) will have unrestricted access to any drive. This includes personal drives and any space.
The rest of the accounts will have restricted access, which means that they'll need at least read permission on the drive in order to access.
Related Issue
Motivation and Context
Space admins could get information from drives they should not be able to access.
How Has This Been Tested?
Manually tested: space admin trying to get information from a personal drive now gets a 404 error.
Screenshots (if appropriate):
Types of changes
Checklist: