We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222bd9a commit c6b0df6Copy full SHA for c6b0df6
src/Controllers/Comment/Delete.php
@@ -23,7 +23,7 @@ public function invoke(?array $args): bool
23
24
$this->model->acl_allowed = ($this->model->active_user && (
25
$this->model->active_user->getOption(\BNETDocs\Libraries\User\User::OPTION_ACL_COMMENT_DELETE) ||
26
- ($this->model->comment && $this->model->active_user->getId() == $this->model->comment->getUserId())
+ ($this->model->comment && $this->model->active_user->getId() === $this->model->comment->getUserId())
27
));
28
29
if (!$this->model->acl_allowed)
0 commit comments