initial commit; version 22.5.12042
This commit is contained in:
12
html/includes/actions/role_permission_del.inc.php
Normal file
12
html/includes/actions/role_permission_del.inc.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
if ($_SESSION['userlevel'] == 10 && request_token_valid($vars)) // Only valid forms from level 10 users
|
||||
{
|
||||
|
||||
$where = '`role_id` = ? AND `permission` = ?';
|
||||
if (dbExist('roles_permissions', $where, array($vars['role_id'], $vars['permission'])))
|
||||
{
|
||||
dbDelete('roles_permissions', $where, array($vars['role_id'], $vars['permission']));
|
||||
} else { }
|
||||
}
|
Reference in New Issue
Block a user