summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager/inc/permissionutil.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [adduser] Support setting user's roles on add/editSimon Rettberg2018-02-231-0/+23
|
* [permissionmanager] Ensure uniqueness in role_x_location table, consistent ↵Simon Rettberg2018-02-201-6/+6
| | | | table naming, drop unused id field
* [permissionmanager] Implement permissions:Simon Rettberg2018-02-191-13/+21
| | | | | | | Permissinmanager is now protected by permissions. In order to prevent complete lockout, the user with userid == 1 will always be able to edit and assign permissions. (TODO: Communicate this somehow)
* [permissionmanager] Force lowercase permissions, handle locId 0 properlySimon Rettberg2018-02-161-3/+10
|
* [permissionmanager] Fix: False positive for perm validity checkSimon Rettberg2018-02-141-0/+2
|
* [permissionmanager] Apply formattingSimon Rettberg2018-02-141-7/+10
|
* [permissionmanager] Slightly more efficient queries, wildcard support, debug ↵Simon Rettberg2018-02-131-31/+117
| | | | mode, comments
* [permissionmanager] getPermissions(): Only consider permissions for active ↵Simon Rettberg2018-02-121-5/+14
| | | | modules
* [permissionmanager] Introduce "location-aware" flag for permissionsSimon Rettberg2018-02-121-4/+5
| | | | | | | | | | This flag tells wether the permission can be restricted to certain locations in a meaningful way. This flag has to be set in the permissions.json of the according module. For example, the permission to reboot the server cannot be limited to certain locations in a meaningful way, while the view of the client log can be filtered to only show log entries for clients in specific locations.
* [permissionmanager] bugfix + added locationid 0 to the getAllowedLocationsUdo Walter2017-12-271-9/+9
| | | | result array if the user has locationid 0 for this permission
* [permissionmanager] removed openRoleEdior function;Udo Walter2017-12-211-0/+34
| | | | | | | | changed searchFieldFunction() to use jQuery; fixed checkboxes in roleeditor not selecting on a click on the label; added selected row highlighting; disabled buttons if there are no users/roles selected; made role badges in user/location tables clickable; added phpdoc comments to most php functions;
* [permissionmanager] fixed small bugUdo Walter2017-12-191-4/+3Star
|
* Fix A LOT of type problems, logic flaws, uninitialized variables etc.Simon Rettberg2017-12-161-1/+0Star
| | | | | Most of them were found by phpstorm, so I put in some time and went through the list, fixing quite a bunch of them.
* [permissionmanager] added support for localized permission descriptions;Udo Walter2017-12-071-4/+3Star
| | | | | moved add/delete buttons to the right; items in the user and locations table can now be selected by clicking anywhere in the table row;
* [permissionmanager] fixed bug: role without locations was shown as role with ↵Udo Walter2017-11-211-4/+2Star
| | | | all locations;
* [permissionmanager] added key relationships to install script;Udo Walter2017-11-211-5/+5
| | | | | changed nested php for loops to sql code; standardized sql column naming; small bugfixes;
* [locations] implemented new permission systemUdo Walter2017-10-031-1/+1
|
* [permissionmanager] another small bugfixUdo Walter2017-04-251-3/+4
|
* [permissionmanager] bugfixUdo Walter2017-04-251-3/+6
|
* [permissionmanager] added possibility to get a list of allowed locations for ↵Udo Walter2017-04-251-15/+41
| | | | a given permission + bugfixes
* [permission-manager] added permission check functionality + bugfixesUdo Walter2017-04-101-0/+35
|
* [permission-manager] renamed some files, moved html generation to templates,Udo Walter2017-04-071-1/+9
| | | | using bind variables in mysql code, changed order of modules in role editor
* [permission-manager] added role editor (new role and edit role)Udo Walter2017-03-281-0/+37