Skip to content

Commit

Permalink
Permissions overhaul - Define permissions in the database
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wrongecho committed Sep 14, 2024
1 parent c7340ca commit ee9a278
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin_roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
</a>

<?php if (empty($role_archived_at) && $role_user_count == 0) { ?>
<!-- To be added-->
<!-- <div class="dropdown-divider"></div>-->
<!-- To be added -->
<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'] ?><!--">-->
<!-- <i class="fas fa-fw fa-archive mr-2"></i>Archive-->
<!-- </a>-->
Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ function lookupUserPermission($module) {

$sql = mysqli_query(
$mysqli,
"SELECT
"SELECT
urp.user_role_permission_level
FROM
modules AS m
Expand Down

0 comments on commit ee9a278

Please sign in to comment.