Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created December 18, 2009 21:36
Show Gist options
  • Save bangpound/259775 to your computer and use it in GitHub Desktop.
Save bangpound/259775 to your computer and use it in GitHub Desktop.
show permissions which aren't handled by a feature.
module_load_include('inc', 'features', 'includes/features.user');
$perms = array_keys(_user_features_permission_map());
$defaults = array();
foreach (module_invoke_all('user_default_permissions') as $permission) {
$defaults[] = $permission['name'];
}
foreach (array_diff($perms,$defaults) as $item) {
dpm($item);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment