Skip to content

Commit 4da69b7

Browse files
committed
Disallow image delete if not enabled
1 parent 660d948 commit 4da69b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controller/ProfileImageController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public function displayAction()
9797

9898
public function deleteAction()
9999
{
100+
if (!$this->getOptions()->getEnableImageDelete()) {
101+
return $this->notFoundAction();
102+
}
100103
$user = $this->getUser();
101104
if (!$user) {
102105
return $this->notFoundAction();

0 commit comments

Comments
 (0)