Is it possible to default permissions for users who are not part of a user role, that is, permissions that are also inherited by other roles as default permissions?
Situation: By default I want some fields to only be writable by a certain group of users. Everyone else should not have access to the change the field value.
I want to avoid creating a default role where I have to add all new users. If it is possible to create a role where users are automatically added, then that might be an option.
This is pretty easy to do with an after_save logic hook on the Users module, triggered each time a new user is created like so…
You can extend this method to specify a series of default roles, or conditions for default roles being applied as well.
Thanks to MrBigAllan in the forums for posting the original solution I based the above example on.