fix [ 1423324 ] Delete locked asset

This commit is contained in:
Matthew Wilson 2006-02-11 17:53:08 +00:00
parent 96298c26ac
commit e3b81ed09a

View file

@ -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;
}