fix [ 1423324 ] Delete locked asset
This commit is contained in:
parent
96298c26ac
commit
e3b81ed09a
1 changed files with 1 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ Unique hash identifier for a user. If not supplied, current user.
|
|||
sub canEdit {
|
||||
my $self = shift;
|
||||
my $userId = shift || $self->session->user->userId;
|
||||
return 0 if ($self->isLocked && !$self->canEditIfLocked);
|
||||
if ($userId eq $self->get("ownerUserId")) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue