Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Adding user_access_multiple() allows for checking if a user all or any permission(s) of a groups of permissions. An example usage would be #296693: Restrict access to empty top level administration pages.
function user_access_multiple($perms, $operator = 'and') {
// Do the move!
}
function user_access($perm) {
return user_access_multiple(aray($perm));
}
Comments
Comment #1
XanoNever mind this.