summaryrefslogtreecommitdiffstats
path: root/modules-available/permissionmanager
Commit message (Collapse)AuthorAgeFilesLines
* Add function param/return types, fix a lot more phpstorm complaintsSimon Rettberg2023-11-145-47/+48
|
* Roundup of issues reported by PHPStormSimon Rettberg2023-11-021-8/+6Star
| | | | Mostly redundant checks, logic errors, dead code, etc.
* [minilinux] Make title db columns longerSimon Rettberg2023-07-171-1/+1
|
* [systemstatus] Show (estimate) of last time updates were installedSimon Rettberg2023-07-041-2/+1Star
| | | | Plus other minor tweaks, like message on main page.
* [permissionmanager] Update default permissionsSimon Rettberg2023-06-131-7/+11
|
* [permissionmanager] Shorten permissionid to 100 charsSimon Rettberg2022-07-061-1/+9
| | | | | | | Upgrading to utf8mb4 fails on older InnoDB setups with a key length limited to 768 bytes. While we could/should probably upgrade these some time, limit the column length for now, as even 100 characters is excessive for a permission id.
* [permissionmanager] Fix for PHP 8Simon Rettberg2022-03-091-1/+3
|
* Moderize Database handlingSimon Rettberg2021-05-112-6/+6
| | | | | | | * 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] Add remoteaccess to default rolesSteffen Ritter2021-04-211-0/+2
|
* [permissionmanager] Fix install always reporting UPDATE_DONESimon Rettberg2021-01-291-2/+4
|
* [permissionmanager] Properly reset builtin roles on upgradeSimon Rettberg2020-02-241-0/+3
|
* [permissionmanager] Update translationsSimon Rettberg2020-01-142-0/+8
|
* [permissionmanager] Also disallow deleting builtin rolesSimon Rettberg2020-01-142-11/+19
|
* [permissionmanager] Make default roles "builtin" i.e. not modifiableSimon Rettberg2020-01-097-27/+78
|
* Fix some typos (found by codespell)Stefan Weil2019-12-141-1/+1
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* [permissionmanager] Fix creating bogus negative cache entriesSimon Rettberg2019-11-051-12/+2Star
| | | | | 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 checksSimon Rettberg2019-08-011-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)
* Introduce JS helper for bootstrap confirm dialogs on button-submitSimon Rettberg2019-03-251-28/+7Star
|
* Fix UUID handling; refactor constraints for machineuuidSimon Rettberg2019-02-211-20/+10Star
|
* [permissionmanager] Improve commentSimon Rettberg2018-05-071-1/+1
|
* [inc/Module] Overhaul dependency loading and handling of js/cssSimon Rettberg2018-04-131-3/+7
| | | | This is supposed to prevent unneeded js/css from being pulled in
* [permissionmanager] Add role description field; install some default rulesSimon Rettberg2018-04-138-35/+156
| | | | Closes #3356
* [permissionmanager] Preselect all locations when adding new roleSimon Rettberg2018-04-131-1/+1
|
* [permissionmanager] Introduce dedicated "permission denied" pageSimon Rettberg2018-03-295-3/+44
| | | | Closes #3350
* [permissionmanager] fixed tree issue with deselecting parent-permissions ↵permission-managerChristian Hofmaier2018-03-271-0/+9
| | | | (Ticket: #3327)
* [permissionmanager] PermissionDbUpdate::saveRole(): handle empty listsSimon Rettberg2018-03-051-8/+12
|
* [adduser] Support setting user's roles on add/editSimon Rettberg2018-02-232-5/+46
|
* [permissionmanager] Ensure uniqueness in role_x_location table, consistent ↵Simon Rettberg2018-02-204-27/+47
| | | | table naming, drop unused id field
* [permissionmanager] Fix location table displaySimon Rettberg2018-02-201-1/+1
|
* [permissionmanager] Implement permissions:Simon Rettberg2018-02-1914-49/+153
| | | | | | | 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-162-3/+14
|
* [permissionmanager] Fix: False positive for perm validity checkSimon Rettberg2018-02-141-0/+2
|
* [permissionmanager] Apply formattingSimon Rettberg2018-02-144-52/+60
|
* [permissionmanager] Speed up queries for saving roles and assignmentsSimon Rettberg2018-02-141-12/+18
|
* [permissionmanager] Slightly more efficient queries, wildcard support, debug ↵Simon Rettberg2018-02-132-38/+142
| | | | mode, comments
* [permissionmanager] Add global translation pluginSimon Rettberg2018-02-131-0/+38
|
* [permissionmanager] GetPermissionData: Fix code style, simplify getRoles()Simon Rettberg2018-02-121-18/+15Star
|
* [permissionmanager] getPermissions(): Only consider permissions for active ↵Simon Rettberg2018-02-121-5/+14
| | | | modules
* [permissionmanager] Tweak style, fix role filtering (and make it AND), minor ↵Simon Rettberg2018-02-1215-276/+184Star
| | | | cleanups
* [permissionmanager] Introduce "location-aware" flag for permissionsSimon Rettberg2018-02-126-63/+62Star
| | | | | | | | | | 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] Sanitize language tag namesSimon Rettberg2018-01-118-44/+44
|
* [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-2113-102/+233
| | | | | | | | 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] removed alert from roleeditorUdo Walter2017-12-142-1/+6
|
* [permissionmanager] added support for localized permission descriptions;Udo Walter2017-12-075-8/+22
| | | | | 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] new permission and location chooser in roleeditorUdo Walter2017-11-309-228/+209Star
|
* [permissionmanager] fixed bug: role without locations was shown as role with ↵Udo Walter2017-11-212-7/+4Star
| | | | all locations;
* [permissionmanager] added key relationships to install script;Udo Walter2017-11-2112-148/+173
| | | | | changed nested php for loops to sql code; standardized sql column naming; small bugfixes;