summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager/inc/getpermissiondata.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* Add tests using PHPUnitSimon Rettberg2025-12-121-1/+1
| | | | | | | Tests generated by Junie AI. Might not have the best possible quality but at least we got something, and if it turns out to be complete rubbish, we can just throw it out again without any issues, as this is independent of the actual code base.
* [locations] Cleanup Location classSimon Rettberg2025-07-071-10/+23
| | | | | | | | | | There was a mess of functions which mostly, but not quite, did the same things. Get rid of a couple of them and fix call sites to use alternative ones that also fit the job. While at it, add phpdoc and comments to the remaining functions, trying to clarify what they were designed for. Lastly, the return type of functions that retrieve a location id has been changed from false|int to ?int (nullable types are just nicer).
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-141-6/+6
|
* Moderize Database handlingSimon Rettberg2021-05-111-4/+4
| | | | | | | * 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] Make default roles "builtin" i.e. not modifiableSimon Rettberg2020-01-091-8/+15
|
* [permissionmanager] Add role description field; install some default rulesSimon Rettberg2018-04-131-2/+2
| | | | Closes #3356
* [permissionmanager] Ensure uniqueness in role_x_location table, consistent ↵Simon Rettberg2018-02-201-3/+3
| | | | table naming, drop unused id field
* [permissionmanager] Implement permissions:Simon Rettberg2018-02-191-2/+20
| | | | | | | 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] GetPermissionData: Fix code style, simplify getRoles()Simon Rettberg2018-02-121-18/+15Star
|
* [permissionmanager] removed openRoleEdior function;Udo Walter2017-12-211-14/+26
| | | | | | | | 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 bug: role without locations was shown as role with ↵Udo Walter2017-11-211-3/+2Star
| | | | all locations;
* [permissionmanager] added key relationships to install script;Udo Walter2017-11-211-52/+32Star
| | | | | changed nested php for loops to sql code; standardized sql column naming; small bugfixes;
* [permission-manager] filter for roles in user and location table, changed ↵Christian Hofmaier2017-04-071-12/+26
| | | | structure of role-spans in both tables
* [permission-manager] renamed some files, moved html generation to templates,Udo Walter2017-04-071-0/+97
using bind variables in mysql code, changed order of modules in role editor