Commit a4379454 authored by akalam's avatar akalam

Add scrict mode check to in_array() function to avoid false possitive access check results.

parent a4205719
......@@ -317,7 +317,7 @@ function node_authlink_check_authlink(NodeInterface $node, $op, AccountInterface
// Permit if checked
if (isset($_SESSION['node_authlink_nodes'][$node->id()]) &&
in_array($op, $_SESSION['node_authlink_nodes'][$node->id()])) {
in_array($op, $_SESSION['node_authlink_nodes'][$node->id()], TRUE)) {
return TRUE;
return FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment