Skip to content

Commit

Permalink
Merge pull request #235 from itk-dev/feature/LOOP-907-alerts
Browse files Browse the repository at this point in the history
LOOP-907: Fixed node type check
  • Loading branch information
martinyde authored Oct 15, 2021
2 parents 7e4a2b1 + 45cdfd7 commit 68c6fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function isGranted(string $attribute, $object = NULL): bool {
if ('send alert about' === $attribute && $object instanceof NodeInterface) {
$nodeTypes = $this->config->get('node_types');
return $this->currentUser->hasPermission('os2loop send alert')
&& isset($nodeTypes[$object->bundle()]);
&& ($nodeTypes[$object->bundle()] ?? FALSE);
}

return FALSE;
Expand Down

0 comments on commit 68c6fe6

Please sign in to comment.