Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better support for the admin-reader role and various smaller fixes in…
… role-based authorization (#422) * use roles decorator from flexmeasures Signed-off-by: Nicolas Höning <nicolas@seita.nl> * fix roles_accepted decorator's passing roles through to flask security Signed-off-by: Nicolas Höning <nicolas@seita.nl> * the two reading User CRUD endpoints give admin-reader a better place. Also use API v3 to count a user's assets Signed-off-by: Nicolas Höning <nicolas@seita.nl> * make tests work: fix a bug, a mock API route and remove a test we don't need to do anymore after this PR Signed-off-by: Nicolas Höning <nicolas@seita.nl> * changelog entry Signed-off-by: Nicolas Höning <nicolas@seita.nl> * let admin-reader use the SensorAPI, also leave TODO for using latest concepts in said API Signed-off-by: Nicolas Höning <nicolas@seita.nl> * avoid lazy-loading user's account if not needed Signed-off-by: Nicolas Höning <nicolas@seita.nl> * fix typo Signed-off-by: Nicolas Höning <nicolas@seita.nl> * preserve still-needed parts of test Signed-off-by: Nicolas Höning <nicolas@seita.nl>
- Loading branch information
Showing
7 changed files
with
37 additions
and
23 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