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 {
|
sub canEdit {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $userId = shift || $self->session->user->userId;
|
my $userId = shift || $self->session->user->userId;
|
||||||
|
return 0 if ($self->isLocked && !$self->canEditIfLocked);
|
||||||
if ($userId eq $self->get("ownerUserId")) {
|
if ($userId eq $self->get("ownerUserId")) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue