Fix a call on potentially undefined parent in Gallery Album. Fixes bug #11289.
This commit is contained in:
parent
8574b68586
commit
9476878b5e
3 changed files with 17 additions and 7 deletions
|
|
@ -311,8 +311,7 @@ sub canEdit {
|
|||
}
|
||||
else {
|
||||
return 1 if $userId eq $self->get("ownerUserId");
|
||||
|
||||
return $gallery->canEdit($userId);
|
||||
return $gallery && $gallery->canEdit($userId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue