details.php award magic && display sponsorships

This commit is contained in:
xiaomlove
2021-06-08 09:58:41 +08:00
parent 0e05e6c061
commit 557c9d3b30
4 changed files with 11 additions and 2 deletions

View File

@@ -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;