Rework permission handling
Add a new function has_credential() that checks whether the currently
logged in user is allowed to perform a given action. Moving all
permission handling to this central place makes adding new user groups
and adjusting permissions much more convenient.
Signed-off-by:
Lukas Fleischer <archlinux@cryptocrack.de>
web/lib/credentials.inc.php
0 → 100644