At my Drupal 7 site every registred user can add nodes. But sometimes i'd like to put some users to group e.g. "Temp ban" and block node add/edit for this users/group.
How can I do it?
At my Drupal 7 site every registred user can add nodes. But sometimes i'd like to put some users to group e.g. "Temp ban" and block node add/edit for this users/group.
How can I do it?
You have a lot of modules contrib for rights and access :
https://www.drupal.org/project/block_access
https://www.drupal.org/project/og
Also you have custom way :
Add another role.
Deny this role the ability to add nodes (or whatever it is you want to deny them).
Change users role to this new role.
Edit
Create a small module that implements hook_menu_alter to alter the 'access callback' of the paths you want, then in your custom access callback function, return true for the roles you want and false for the roles you don't want'.
Module Deny Access is what I was looking for.