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

Xano’s picture

Status: Active » Closed (won't fix)

Never mind this.