Closed (fixed)
Project:
OG User Roles
Version:
6.x-1.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2009 at 15:37 UTC
Updated:
21 Jan 2010 at 06:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
somebodysysop commentedExactly which setting are you using?
Comment #2
Rajan M commentedI gave permission to group administrator to assign default role for his group.So while creating he can assign role for his group members. When any user join group his role is visible in group member section for that user.But it is not actualy assigned to that user so i have to edit mannualy for that user to assign role.Also i have enabled permission for auto role assign in user permission.Is i am missing any setting for auto role assign?
Comment #3
somebodysysop commentedAs far as I have been able to ascertain, the functionality works.
1. Go into OGUR settings:
Allow Group Admins to define Default Basic Group Role for new group subscribers.
Check this.
2. Edit the actual group node:
Default Basic Group Role for new subscribers to this group.
Allows you to select a group role to automatically assign to users who join this group. The role is specific to this group. That is, the user will only have the privileges of the role while he is visiting this group. You must have the auto assign group roles permission to use this setting.
Set default basic group (group limited) role for users who join this group?
Do you wish to automatically assign a specific "basic group role" to every new subscriber to this group at the time he subscribes to this group? The role is limited to this group. This role assignment can be be removed by the groups' admin(s)
Role to use as a basic group role:
Select the role you wish to use as the "basic group role" for every new subscriber to this group.
3. When you add users, they will automatically be given the role you assigned above.
Comment #4
sunAfter the rise of the rewritten OGUR 4.x for Drupal 6, in which many unrelated features of OGUR were removed, and nearing a release of Drupal 7, I'm closing down old issues.
Comment #5
somebodysysop commentedThe person who changed the status of these issues to "won't fix" was not authorized to do so: http://drupal.org/node/352139#comment-2352234
OGUR 6.x-1.x will continue to be maintained by me.
Comment #6
nubeli commentedI've tried it on two sites now: a working site and a fresh install, and I haven't been able to get it to assign roles automatically. The fresh install is using Drupal 6.14, OG 6.x-2.0, OG User Roles 6.x-4.0.
Instead I've tried, and got it working with Rules, which leverages OG Triggers, to assign roles automatically when someone is approved. Someone may consider that alternative if they don't need the other functionality of this module.
Comment #7
somebodysysop commentedAs far as I know, this functionality is not in OGUR 6.x-4.x. You will note that this issue is marked for version 6.x-1.5. At any rate, you've got it working.
Comment #9
kristen polI was having a problem with default roles not working and found a bug. In version 4.0, line #344 is this:
og_user_roles_role_delete($nid, $uid, $rid);
but there is no $rid defined so it is deleting all roles for the user. If it is changed to:
og_user_roles_role_delete($nid, $uid, $default_admin_role);
then it works. I've attached a patch.
Comment #10
sunI think this has been fixed in the latest dev snapshot already.
Comment #11
kristen polYes, I apologize. I just saw it.
Sorry for the noise!
Kristen