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:
parent
f5d08f1585
commit
309a2f497f
@ -79,7 +79,7 @@ class Upload implements Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if the user is an administrator and can upload files.
|
// 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);
|
$this->theme->display_permission_denied($page);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user