mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Permissions overhaul - Define permissions in the database
2nd attempt at this one! Similar to #1008 but separately defining the roles, modules and associated permissions in the database. Also has admin being a defined role automatically having full access. Parent issue: #530
This commit is contained in:
@@ -1356,13 +1356,13 @@ function lookupUserPermission($module) {
|
||||
$mysqli,
|
||||
"SELECT
|
||||
urp.user_role_permission_level
|
||||
FROM
|
||||
FROM
|
||||
modules AS m
|
||||
JOIN
|
||||
JOIN
|
||||
user_role_permissions AS urp
|
||||
ON
|
||||
ON
|
||||
m.module_id = urp.module_id
|
||||
WHERE
|
||||
WHERE
|
||||
m.module_name = '$module' AND urp.user_role_id = $session_user_role"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user