-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
could u add user roles/permissions?
not like this
<?php if( isset($_SESSION['user_id'])) : ?> <li class="nav-item"> <a class="nav-link" href="<?php echo URL_ROOT;?>/users">Users</a> </li> <?php endif; ?>
something more like this
<?php if( $userDetails['role'] == 1 ) : ?> <li class="nav-item"> <a class="nav-link" href="<?php echo URL_ROOT;?>/users">Users</a> </li> <?php endif; ?>
or something really impressive like this
https://sevvlor.com/post/2014/10/14/how-to-make-role-based-access-control-in-php/
Metadata
Metadata
Assignees
Labels
No labels