This repository has been archived by the owner on Aug 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make global permissions explicit (#359)
* Only show active devices in browse * - Only show active devices in browse - Refactor some stations APIs to return more info about what stations were added/updated and how many recordings were matched, if any. - Simpler get APIs for retrieving group devices, group users. * Revert docker files * Fix stations tests * Python formatting * Adding missing apidoc info * All api listing commands will automatically return all results if the user is a super-admin user. This PR adds an optional "view-mode" query param to these APIs, which, if set to "limited", will restrict results to items only directly viewable by the super-admin user. This is then plumbed through to the various database queries generated. This does not change any existing behaviour, as that is still the default. * Fix comparison for retired stations in where clause. * Fix viewAsSuperAdmin arg passing. * Addressing review feedback
- Loading branch information
1 parent
3ded795
commit c1959e4
Showing
10 changed files
with
158 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.