mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-25 12:37:23 +08:00
Refactoring user permissions
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ require_once(get_langfile_path());
|
||||
$userid = $CURUSER['id'];
|
||||
$pagerParams = [];
|
||||
if (!empty($_GET['userid'])) {
|
||||
if (get_user_class() < $viewhistory_class && $_GET['userid'] != $CURUSER['id']) {
|
||||
if (!user_can('viewhistory') && $_GET['userid'] != $CURUSER['id']) {
|
||||
permissiondenied($viewhistory_class);
|
||||
}
|
||||
$userid = $_GET['userid'];
|
||||
|
||||
Reference in New Issue
Block a user