This has been haunting me for 2 weeks. I installed and reinstalled all the modules one by one with all necessary steps to find out the root cause that had deleted the roles, including the admin role.
I did the fresh install with drigg this morning, and start giving the user IDs a submit-as user can submit as on my admin/settings/drigg. Checking all the roles and permissions are set, I, user 1, submitted a scoop as user 2 (staff). And a moment later, I saw I lose a sight of a certain block owned by admin role, me. I checked the user management. It appeared that the roles were deleted for admin and staff roles who I submitted as. I tried to edit and gave back the roles, but to no use. The roles are never updatable anymore. User 1 and user 2 now can never have a role anymore.
Here's what I had done with drigg:
1. I copy the node-drigg.tpl to my theme directory
2. I create a page-drigg.tpl to make a stand-alone page with the new condition under the case page of my _phptemplate_variables:
if(arg(0)=='node') {
$vars['template_file'] = 'page_' . $vars['node']->type;
}
if(module_exists('drigg') && $node_type = 'drigg') {
$vars['template_file'] = 'page-drigg';
}
3. I edit the css to get drigg blend with my garland.
4. All other necessary settings are left to default.
Anyone had the same problem? Or it might be just a conflict with certain other module or I just did some stupid things I missed?
Thanks
Comments
Comment #1
gausarts commentedHere is the latest steps I did:
1. I deactivate and uninstall drigg and extra voting forms, I clear cache with devel, I go back to user management. Editing and updating are still of no use.
2. I deactivate user karma, there was no uninstall, clear cache and NOW rebuild permissions. I go back to user management, and I can edit and update the admin role back. One of the role, staff even gets his role back automatically on page refresh.
Now to my wonder, I have no idea if it was drigg since I missed the rebuild permissions on step 1. If it was user karma, then why this only happened when I submit a scoop as another user?
Thanks
Comment #2
mercmobily commentedHi,
The problem is the way you configured user_karma.
Go to Admin -> Settings -> User Karma. You will see "Roles eligible for user karma". You can only highlight the roles you want user_karma to manage (the help says "You should choose roles created specifically for user karma."). What's happening here, is that you submit a story, and that user's karma -- and roles -- are recalculated. Then, those roles are taken away from the user.
Basically, you need to create specific roles for user_karma and NOT select the ones you don't want user-karma to add/delete.
Bye,
Merc.
Comment #3
mercmobily commentedNo worries, anytime.