Skip to content

Commit

Permalink
LOOP-907: Fixed node type check
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Oct 14, 2021
1 parent 07df77f commit 2b9ba5d
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 2b9ba5d

Please sign in to comment.