单独判断admin

master
zhengyongxing 5 years ago
parent 67ab1fa89e
commit 61c2519ccd

@ -50,7 +50,7 @@ function is_administrator($uid = null)
{
$uid = is_null($uid) ? is_login() : $uid;
return $uid && (session('user_group_id') == 1);
return $uid && (session('user_group_id') == 1)||(intval($uid) === C('USER_ADMINISTRATOR'));
// (intval($uid) === C('USER_ADMINISTRATOR'));
}

Loading…
Cancel
Save