User login

permissions

Available role: A module for Drupal to allow users to choose which roles permitted to them they currently use

When developing a site it is well known you need to log in as different users to properly test functionality, or you will always be surprised by incorrectly-configured permissions.

However, it should be much easier to test out working as a given user role by anyone with these privileges.

Permission sets for sensible defaults in module-provided permissions to roles

Created a feature that would be easily shareable among Drupal sites except for a big failing of Drupal to allow for module-provided sensible default permissions.

Check if a given uid has a given permission (a query to avoid user_load)

a good D7 query for determining if a user has a specific permission
via agentrickard

what's wrong with user_access('permission', $account) ?

it requires a user_load_multiple() (a user_load to get the roles on the account, turning in the ID is not enough)

which is wasteful if you can do it at the query level

you could see what queries that function runs

it seems like that is a somewhat complicated thing to work out
since users can belong to many roles

how many users is this for at a time? I'd just use user_load() + user_access().

Use of -p is not recommended: set file permissions explicitly

Stefan told me not to recommend scp -r ~/code/example [email protected]:/var/www/.

See Drupal 7 permissions internal system names

Asked in IRC #drupal

has anyone made a Drupal 7 module for seeing the system names for all permissions? (now the Permissions UI uses human-friendly names and descriptions)

No response.

Update: This has been incorporated into Xray.

pwn: let users grant permissions they own to roles (delegate only their own privileges to others)

drupal allow user to administer only permissions they have
drupal give lesser permissions
permission delegate
drupal grant permissions you have

Agaric and the world needs a

Drupal role permission to set permissions for any permission it has

http://gotdrupal.com/videos/manage-drupal-permissions-more-easily

Closest thing we have right now is this trio, which does both more... and less.

Syndicate content