mirror of
https://github.com/itflow-org/itflow
synced 2026-03-23 22:15:39 +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:
@@ -97,8 +97,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php if (empty($role_archived_at) && $role_user_count == 0) { ?>
|
<?php if (empty($role_archived_at) && $role_user_count == 0) { ?>
|
||||||
<!-- To be added-->
|
<!-- To be added -->
|
||||||
<!-- <div class="dropdown-divider"></div>-->
|
<div class="dropdown-divider"></div>
|
||||||
<!-- <a class="dropdown-item text-danger confirm-link" href="post.php?archive_role=--><?php //echo $role_id; ?><!--&csrf_token=--><?php //echo $_SESSION['csrf_token'] ?><!--">-->
|
<!-- <a class="dropdown-item text-danger confirm-link" href="post.php?archive_role=--><?php //echo $role_id; ?><!--&csrf_token=--><?php //echo $_SESSION['csrf_token'] ?><!--">-->
|
||||||
<!-- <i class="fas fa-fw fa-archive mr-2"></i>Archive-->
|
<!-- <i class="fas fa-fw fa-archive mr-2"></i>Archive-->
|
||||||
<!-- </a>-->
|
<!-- </a>-->
|
||||||
|
|||||||
@@ -1354,7 +1354,7 @@ function lookupUserPermission($module) {
|
|||||||
|
|
||||||
$sql = mysqli_query(
|
$sql = mysqli_query(
|
||||||
$mysqli,
|
$mysqli,
|
||||||
"SELECT
|
"SELECT
|
||||||
urp.user_role_permission_level
|
urp.user_role_permission_level
|
||||||
FROM
|
FROM
|
||||||
modules AS m
|
modules AS m
|
||||||
|
|||||||
Reference in New Issue
Block a user