浏览代码

Revert the "fix" #944
doesn't really fix the issue and causes admins to lose all their permissions

Signed-off-by: Suki <[email protected]>

Suki 10 年之前
父节点
当前提交
c48ac72f09
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/Security.php

+ 1 - 1
Sources/Security.php

@@ -919,7 +919,7 @@ function allowedTo($permission, $boards = null)
 		return true;
 
 	// You're never allowed to do something if your data hasn't been loaded yet!
-	if (empty($user_info['permissions']))
+	if (empty($user_info))
 		return false;
 
 	// Administrators are supermen :P.