mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
details.php award magic && display sponsorships
This commit is contained in:
@@ -249,7 +249,7 @@ class User extends Authenticatable
|
||||
|
||||
public function canAccessAdmin()
|
||||
{
|
||||
$targetClass = self::CLASS_MODERATOR;
|
||||
$targetClass = self::CLASS_SYSOP;
|
||||
if (!$this->class || $this->class < $targetClass) {
|
||||
do_log(sprintf('user: %s, no class or class < %s, can not access admin.', $this->id, $targetClass));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user