mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
Refactoring user permissions
This commit is contained in:
@@ -4,7 +4,7 @@ dbconn();
|
||||
require get_langfile_path();
|
||||
|
||||
$isLogin = isset($CURUSER['id']);
|
||||
$isAdmin = get_user_class() >= $staffmem_class;
|
||||
$isAdmin = user_can('staffmem');
|
||||
|
||||
if($isLogin && !$isAdmin) {
|
||||
permissiondenied();
|
||||
|
||||
Reference in New Issue
Block a user