Posted by zenlinuxNH on January 1, 2008 at 3:23pm
Hello,
I'm running Drupal v5.5, and I'm wondering if there is an ability to put an individual user (not all users) on moderation for comments only? I thought I could do this with the roles system (create a role for "moderated users") but the ability of "authenticated users" to post comments without moderation overrides the new role I was creating without that ability.
What is another way of doing this?
Thanks,
Scott
Comments
=-=
Drupal permission system is role based not user based. That being said you can't issue permissons on a per user basis. Permissions have to be on roles.
you can
Thats because roles inheriit the permissions from their lesser counterparts. If authenticated users have permission to do something then basically every other role created will also have these permissions except anon.
Look into the role weights module and create a role that is between anon and authenticated if necessary. This will allow them to have more permissions then anon but less than authenticated where you can now do what you were seeking to do.
First of all, thanks for the
First of all, thanks for the reply, and the pointer to the role weights module. I've installed it and am playing with it right now.
However, I think the root of the problem is that the authenticated user role is enabled by default when users log in. So even if I create a role of higher precedence than authenticated user, the authenticated user role is still going to add the privilege to post comments without approval. Or am I misunderstanding something?
I guess another possible alternative is to disable the ability for authenticated users to post comments without moderation, then create an "unmoderated users" role to enable for all users except the ones which need to be moderated. My site currently has 500+ user accounts, though. Is there a simple way I could enable this role en masse for all uses and then remove it on an individual basis?
Thanks,
Scott
=-=
There are modules to help with that too. Modules that would put users in roles other than autenticated user role at registration. loggintoboggan.module & registration role.module come to mind. I believe there is one or two more, though off the top of my head I can't recall the names.
as far as updating user roles in mass, you could use an a MySQL string to do that, though I'll have to let someone else give that to you because I'm not that versed in SQL to write it out off the top of my head.
I believe its an update string though
check out
check out http://drupal.org/project/Modules/category/76 ; I see a lot of modules that probably do mass role editing.
Or, an additional module may not be necessary. Out of the box, Drupal allows you to select multiple users using the user interface at /admin/user/user, and assign them a role (or remove a role from them).
kevin.smith wrote: "Out of
kevin.smith wrote:
"Out of the box, Drupal allows you to select multiple users using the user interface at /admin/user/user, and assign them a role (or remove a role from them)."
Thanks, Kevin! I didn't realize that ability was available, but I see it now. That will make this task much more manageable. That should resolve this issue for me.
Scott
Role Assign
The module RoleAssign might be worth a look too for anyone else who has stumbled across this. It can assign users to a role when the user account is created. You could then make them moderated by removing this role.
----------------------------------
neish.net | botanicalartistry.com