|
@@ -919,7 +919,7 @@ function allowedTo($permission, $boards = null)
|
|
return true;
|
|
return true;
|
|
|
|
|
|
// You're never allowed to do something if your data hasn't been loaded yet!
|
|
// 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;
|
|
return false;
|
|
|
|
|
|
// Administrators are supermen :P.
|
|
// Administrators are supermen :P.
|