Skip to content

Commit

Permalink
fixed #4
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgarrigos committed Nov 13, 2022
1 parent 8559610 commit c5085e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rate.module
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function _rate_check_permissions($widget, $node = NULL) {
foreach ($widget->roles as $rid => $role) {
if ($role) {
$roles_selected = TRUE;
if (isset($user->roles[$rid])) {
if (in_array($role, $user->roles)) {
return RATE_PERMISSION_OK;
}
}
Expand Down

0 comments on commit c5085e0

Please sign in to comment.