I configured a role for og group but when i subscribe for group,role that i configured for that group is automaticaly not assigning.It has to mannualy save for each user.

CommentFileSizeAuthor
#9 og_user_roles.module.patch582 byteskristen pol

Comments

somebodysysop’s picture

Status: Active » Postponed (maintainer needs more info)

Exactly which setting are you using?

Rajan M’s picture

I 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?

somebodysysop’s picture

As 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.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

After 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.

somebodysysop’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

The 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.

nubeli’s picture

Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

I'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.

somebodysysop’s picture

Status: Active » Fixed

As 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kristen pol’s picture

Status: Closed (fixed) » Patch (to be ported)
StatusFileSize
new582 bytes

I 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.

sun’s picture

Status: Patch (to be ported) » Closed (fixed)

I think this has been fixed in the latest dev snapshot already.

kristen pol’s picture

Yes, I apologize. I just saw it.

Sorry for the noise!
Kristen