Skip to content

Commit

Permalink
Merge pull request #5 from backdrop-contrib/issue4
Browse files Browse the repository at this point in the history
fixed #4
  • Loading branch information
robertgarrigos committed Nov 13, 2022
2 parents 8559610 + c5085e0 commit 198b939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rate.module
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 198b939

Please sign in to comment.