Whenever we display an image for any reason, show the admin block, fixes #621
This commit is contained in:
@ -68,7 +68,7 @@ class UserClass
|
||||
}
|
||||
|
||||
$_all_false = [];
|
||||
foreach((new ReflectionClass('Permissions'))->getConstants() as $k => $v) {
|
||||
foreach ((new ReflectionClass('Permissions'))->getConstants() as $k => $v) {
|
||||
$_all_false[$v] = false;
|
||||
}
|
||||
new UserClass("base", null, $_all_false);
|
||||
|
Reference in New Issue
Block a user