How do I get the default vanilla roles after a SMF import?
Hello everyone. I just imported my SMF2 installation to vanilla and I don't seem to have the default vanilla roles anymore, like guest and applicant. Guests are currently able to access the dashboard and that's somewhat inconvenient. Any way to fix this?
Best Answers
-
peregrine MVP
you do realize vanilla 2.2b1 is for developers testing and the version to use by non-developers is 2.1.11
in any event ...
you would need to manually re-create.
It would be great if they put something in porter documentation about roles and permissions. since many people have the same recurring questions and problems regarding roles.
these may be helpful.
http://vanillaforums.org/discussion/comment/232154#Comment_232154
http://vanillaforums.org/discussion/comment/219688/#Comment_219688
http://vanillaforums.org/discussion/comment/219730/#Comment_219730
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
7 -
peregrine MVP
because in the GND_UserRole table, USERID's have mutilple rows with roles assigned. There should be only one row per user right?
Yes, if you only want one role assigned to a user.
the user role table should only have one role assigned to a user id.
if you want a user to have two roles (there would be two entries in user role table).
so yes you would need to prune accordingly.
you can use the plugin below to look at role assignment.... (or just click on users profile.)
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
6
Answers
you do realize vanilla 2.2b1 is for developers testing and the version to use by non-developers is 2.1.11
in any event ...
you would need to manually re-create.
It would be great if they put something in porter documentation about roles and permissions. since many people have the same recurring questions and problems regarding roles.
these may be helpful.
http://vanillaforums.org/discussion/comment/232154#Comment_232154
http://vanillaforums.org/discussion/comment/219688/#Comment_219688
http://vanillaforums.org/discussion/comment/219730/#Comment_219730
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thank you for that, I have recreated the original roles. I still have a problem though: members can access the dashboard, just like an admin. It seems the roles have no effect. Any idea? I suspect members have multiple roles assigned, because in the GND_UserRole table, USERID's have mutilple rows with roles assigned. There should be only one row per user right?
Yes, if you only want one role assigned to a user.
the user role table should only have one role assigned to a user id.
if you want a user to have two roles (there would be two entries in user role table).
so yes you would need to prune accordingly.
you can use the plugin below to look at role assignment.... (or just click on users profile.)
http://vanillaforums.org/addon/memberslistenh-plugin
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Can confirm it worked. I truncated the GND_UserRole table and reassigned all users to the default Member role that I created. Everyone only has 1 role now and no longer access the dashboard, which I assumed was because they had an admin role.
Thanks.
Just a correction vanilla supports multiple roles. No contradiction there. In vanilla roles are additive, in that they take the same of the permissions.
However it sounds like the role got a bit messed up during import, par for the course.
grep is your friend.