scitran / core

RESTful API
https://scitran.github.io
MIT License
18 stars 18 forks source link

Remove `root` Flag #1048

Closed nagem closed 6 years ago

nagem commented 6 years ago

Currently, the root flag serves two purposes in core: 1) Allow system administrators to do some system level tasks (remove groups or modify site-level rules, etc) 2) Allow system administrators access to all data, not just data they have explicit permission to.

Proposed Changes

ehlertjd commented 6 years ago

Are there any cases where admin users might not want to see the admin view of data? (e.g. see the list of projects for groups that I belong to)

nagem commented 6 years ago

@ehlertjd Yes, I believe what you're asking is this proposed change:

System Administrators are also frequently normal users of the system and should be able to toggle the results of list views to show data they have explicit permissions for and all data in the system

Admin users should be able to request only their data or all data from list endpoints (probably through use of a query param like all/all_data=true). I assume the default would be to show only their data.

ehlertjd commented 6 years ago

Makes sense, thanks. I was looking for that detail for the SDK.