Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 15:34 UTC
Updated:
26 Jan 2009 at 20:37 UTC
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.