forked from Cavemanon/cavepaintings
only admins should replace images (possibly people should be allowed to replace their own too? I'm erring on the side of caution for now though)
This commit is contained in:
@ -79,7 +79,7 @@ class Upload implements Extension {
|
||||
}
|
||||
|
||||
// check if the user is an administrator and can upload files.
|
||||
if (!$user->is_admin() && !$this->can_upload($user)) {
|
||||
if (!$user->is_admin()) {
|
||||
$this->theme->display_permission_denied($page);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user