Explorar o código

fixes #944
Thanks to HoverClub for the fix :)

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

Suki %!s(int64=10) %!d(string=hai) anos
pai
achega
b58f4282df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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))
+	if (empty($user_info['permissions']))
 		return false;
 
 	// Administrators are supermen :P.