Closed (fixed)
Project:
Exit pop up
Version:
8.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2019 at 15:34 UTC
Updated:
7 Aug 2019 at 00:34 UTC
Jump to comment: Most recent
exitpopup.module:
foreach ($configRoles as $key => $role) {
if ($role !== 0) {
$checkRole = in_array($role, $current_user->getRoles());
}
}
I thing it should be:
foreach ($configRoles as $key => $role) {
if ($role !== 0) {
$checkRole = $checkRole || in_array($role, $current_user->getRoles());
}
}
Comments
Comment #2
ravi.shankar commentedThis issue has been solved.
Comment #3
gaurav.kapoor commented