allow image owner to view their unapproved images
This commit is contained in:
parent
bed0db40d7
commit
bdea799766
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class Approval extends Extension
|
|||
{
|
||||
global $user, $config;
|
||||
|
||||
if ($config->get_bool(ApprovalConfig::IMAGES) && $image->approved===false && !$user->can(Permissions::APPROVE_IMAGE)) {
|
||||
if ($config->get_bool(ApprovalConfig::IMAGES) && $image->approved===false && !$user->can(Permissions::APPROVE_IMAGE) && $user->id!==$image->owner_id) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Reference in a new issue