Hi, I am new to drupal and still figuring out stuff. I need specific users to be able to perform specific tasks on certain node types. OG seemed to be the ideal solution. However I need to be able to configure permissions on a group-level only rather than on a site level. OG User Roles seemed to the potential candidate to do the trick. I have the following setup:
Site-wide roles:
-
View (with the following privileges):
- access content
- access all views -
Edit (with the following privileges):
- access content
- edit group content
- edit own post content
- edit post content
- access all views -
Create (with the following privileges):
- access content
- create group content
- create post content
- access all views
OG Groups
- Group A
- Group B
- Group C
*All of them are closed groups managed by site-admin.
OG Post N with its audiences set to Group A, Group B, and Group C .
User X who is a member of all the three OG Groups (i.e. Group A, Group B, and Group C ). This user has not been added to any Roles from Drupal Core (i.e. Administration > User Management > Users).
OG User Roles (with the following configuration):
Under OG Group role options
Assignable roles:
- Edit
- Create
Set default basic group (group limited) role for users who join groups of this type: OG Group? is checked with Role to use as a group type OG Group role set to View.
*All other OG User Roles settings are set to their default values.
The issue is that OG User Roles doesn't seem to work or do anything. I went through the usual process as explained in the README. That is: Installed OG User Roles, Enabled it, Configured it (from Administer > Organic groups > Organic groups user roles), Configured the group roles for User X as follows:
- Group A: Edit
- Group B: No OG User Role set (but from what I understand this should be set to View by default when User X is added to the group because the default basic group (group limited) role for users who join groups is set to View in the OG User Role settings [check configuration detais above])
- Group C: Create
No matter what group roles I assign to User X he/she is only able to view Post N because he/she is a member of the group and not due to the default basic group (group limited) role for users who join groups settings. I know this because even when I change the default basic group (group limited) role for users who join groups setting to Edit and add new users to the groups still they can only view Post N. So, basically none of the group role privileges assigned to the user through OG User Roles is taking effect. I did check the db and og_user_roles table is being created. I don't know whether I'm doing something wrong or am not quite understanding what OG User Roles is supposed to do.
OG and OG Access Control modules by themselves (without OG User Roles enabled) is behaving exactly as expected without any issues.
My test website is a fresh installation of Drupal 5.8 with modules OG 5.x-7.2, OG Access Control 5.x-7.2, OG User Roles 5.x-3.2, View 5.x-1.6, Views RSS 5.x-1.6, Views Theme Wizard 5.x-1.6, and Views UI 5.x-1.6 enabled.
All I want to do is to have enough granularity to be able to assign different group roles to the users for each group. Meaning I want to assign group level permissions not site-level. OG User Role sounds to be able to do the trick. But that isn't happening so far. Don't quite understand what I'm doing wrong.
Comments
This should have been posted
This should have been posted to the OGUR issues: http://drupal.org/project/issues/149373
Your specific issue is addressed on the project page:http://drupal.org/project/og_user_roles ("If your basic "OG Roles aren't working", please note the following:)
Also, here: http://drupal.org/node/263944