Skip to content

Commit

Permalink
Issue backdrop-contrib#39. Correctly check administer profiles permis…
Browse files Browse the repository at this point in the history
…sion for current user.

Fixes backdrop-contrib#39.
  • Loading branch information
argiepiano committed Jan 3, 2025
1 parent 326efdf commit edfa461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile.module
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ function profile_form_submit_cleanup(&$form, &$form_state) {
*/
function profile_access($op, $profile = NULL, $account = NULL) {
// With access to all profiles there is no need to check further.
if (user_access('administer profiles', $account)) {
if (user_access('administer profiles')) {
return TRUE;
}

Expand Down

0 comments on commit edfa461

Please # to comment.