Skip to content

Commit c6b0df6

Browse files
committed
Compare type and value
1 parent 222bd9a commit c6b0df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/Comment/Delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function invoke(?array $args): bool
2323

2424
$this->model->acl_allowed = ($this->model->active_user && (
2525
$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())
26+
($this->model->comment && $this->model->active_user->getId() === $this->model->comment->getUserId())
2727
));
2828

2929
if (!$this->model->acl_allowed)

0 commit comments

Comments
 (0)