Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add function param/return types, fix a lot more phpstorm complaints | Simon Rettberg | 2023-11-14 | 1 | -14/+15 |
| | |||||
* | Roundup of issues reported by PHPStorm | Simon Rettberg | 2023-11-02 | 1 | -8/+6 |
| | | | | Mostly redundant checks, logic errors, dead code, etc. | ||||
* | [permissionmanager] Fix for PHP 8 | Simon Rettberg | 2022-03-09 | 1 | -1/+3 |
| | |||||
* | Moderize Database handling | Simon Rettberg | 2021-05-11 | 1 | -2/+2 |
| | | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries | ||||
* | [permissionmanager] Fix creating bogus negative cache entries | Simon Rettberg | 2019-11-05 | 1 | -12/+2 |
| | | | | | If a permission check for a location yielded false, a cache entry for all parent locations with value "false" was created as well. | ||||
* | [permissionmanager] Implement caching for permission checks | Simon Rettberg | 2019-08-01 | 1 | -12/+79 |
| | | | | | | | Some pages, like the location list, triggered excessive amounts of DB queries when checking permissions. In that specific case, the number of queries got cut down from 260 to 24, and the page generation time dropped from 150ms to 80ms. (On a setup with 62 locations) | ||||
* | [adduser] Support setting user's roles on add/edit | Simon Rettberg | 2018-02-23 | 1 | -0/+23 |
| | |||||
* | [permissionmanager] Ensure uniqueness in role_x_location table, consistent ↵ | Simon Rettberg | 2018-02-20 | 1 | -6/+6 |
| | | | | table naming, drop unused id field | ||||
* | [permissionmanager] Implement permissions: | Simon Rettberg | 2018-02-19 | 1 | -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 properly | Simon Rettberg | 2018-02-16 | 1 | -3/+10 |
| | |||||
* | [permissionmanager] Fix: False positive for perm validity check | Simon Rettberg | 2018-02-14 | 1 | -0/+2 |
| | |||||
* | [permissionmanager] Apply formatting | Simon Rettberg | 2018-02-14 | 1 | -7/+10 |
| | |||||
* | [permissionmanager] Slightly more efficient queries, wildcard support, debug ↵ | Simon Rettberg | 2018-02-13 | 1 | -31/+117 |
| | | | | mode, comments | ||||
* | [permissionmanager] getPermissions(): Only consider permissions for active ↵ | Simon Rettberg | 2018-02-12 | 1 | -5/+14 |
| | | | | modules | ||||
* | [permissionmanager] Introduce "location-aware" flag for permissions | Simon Rettberg | 2018-02-12 | 1 | -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 getAllowedLocations | Udo Walter | 2017-12-27 | 1 | -9/+9 |
| | | | | result array if the user has locationid 0 for this permission | ||||
* | [permissionmanager] removed openRoleEdior function; | Udo Walter | 2017-12-21 | 1 | -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 bug | Udo Walter | 2017-12-19 | 1 | -4/+3 |
| | |||||
* | Fix A LOT of type problems, logic flaws, uninitialized variables etc. | Simon Rettberg | 2017-12-16 | 1 | -1/+0 |
| | | | | | 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 Walter | 2017-12-07 | 1 | -4/+3 |
| | | | | | 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 Walter | 2017-11-21 | 1 | -4/+2 |
| | | | | all locations; | ||||
* | [permissionmanager] added key relationships to install script; | Udo Walter | 2017-11-21 | 1 | -5/+5 |
| | | | | | changed nested php for loops to sql code; standardized sql column naming; small bugfixes; | ||||
* | [locations] implemented new permission system | Udo Walter | 2017-10-03 | 1 | -1/+1 |
| | |||||
* | [permissionmanager] another small bugfix | Udo Walter | 2017-04-25 | 1 | -3/+4 |
| | |||||
* | [permissionmanager] bugfix | Udo Walter | 2017-04-25 | 1 | -3/+6 |
| | |||||
* | [permissionmanager] added possibility to get a list of allowed locations for ↵ | Udo Walter | 2017-04-25 | 1 | -15/+41 |
| | | | | a given permission + bugfixes | ||||
* | [permission-manager] added permission check functionality + bugfixes | Udo Walter | 2017-04-10 | 1 | -0/+35 |
| | |||||
* | [permission-manager] renamed some files, moved html generation to templates, | Udo Walter | 2017-04-07 | 1 | -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 Walter | 2017-03-28 | 1 | -0/+37 |