I would like to request a "repair permissions" button. When setting up my forums from phpbb I did not have my default roles set so I had a lot of users created without a role. There doesn't seem to be any way to locate all users with a blank role or edit multiple users at once.
My idea is that you could click this button and then assign a role to any user that has no role defined or even change all users of one role to another.
Comments
Good idea. In the meantime try the following SQL:
Replace
XXXwith the RoleID of the role you want to use.- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I tried this code but it doesn't work for me.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •"Doesn't work" doesn't help somebody solve your problem - you need to give a wee bit more of an explanation.
remove the ignore? and probably 8 is the roleid you want for members
Do you see any nulls in your UserRole table?
if yes, after you run the code
do you still see nulls?
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •