forked from garsh0p/garpr
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added function to sessions service to check super admin. Added property to user model for checking superadmin. Added DAO functions to get and set the superadmin propery. * Made is_superadmin false by default (new users). Added a link to the admin console fro dropdown when a user is logged in. Made Super Admin functions only show up for superadmin users. * Bug fixes for get_is_superadmin. Added a Superadmin check onto the admin functions of adding new regions and users. * Adding additional features to admin portal. Change password. List regions. * Refactored superadmin from T/F booleans into enumerated Strings * Successfully programmed password change form to work. Admin functions page now hides adding region/users fields to everyone but superadmins * Added select field for permissions on inserting a new user form * Bug fix for admin permission levels * Added unit tests for Changing Password via PUT request, and for testing serer side if a user has SuperAdmin privileges * Added tests to try adding a region and user with and without superadmin privileges * Added lines to check SuperAdmin privileges before regular admin. This would ensure that superadmins have access to Anything and any function on the website * Fixed syntax error * Refactoring for PR. 80% done. * PR Fixes. Added admin level validators. Removed Comment not neccessary. * Changes for Jon. Rewrote set admin-level. Also commented it out until there's a time we need to use it. Deleted the third creds_check because it was broken initially. I left it in in case we could figure it out but I have no time anymore. * fix bug with creating users in admin functions
- Loading branch information
1 parent
a2b52cb
commit a5f4def
Showing
12 changed files
with
388 additions
and
109 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
Oops, something went wrong.