I have members that are administrators of one group and only a member of the other.
I have 2 group roles - admin and member.
The user is allowed to add content as admin and not as member but the user can add content to all groups, not just the one they are administrator of.

I assume this is a fairly major bug or I'm doing something wrong.

Comments

sun’s picture

Status: Active » Closed (won't fix)

With 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)

I would assume you're doing something wrong. Group roles only allow you the permissions of the role while in the group. It sounds like in your case, you have given the users site-wide roles.

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.

scottbaetz’s picture

Same Problem,

I'm having the same problem. I'm using the following module versions

Organic Groups 6.X-2.0
OG User Roles 6.X-1.5 (We wanted the additional features provided by 6.x-1-5)

Simply stated I have a user who is the President of Group A, and as such he is assigned "Configure Member Roles" permission. When he accesses his group, he is able to assign roles as expected.

However, when this user now becomes a 'standard member' of another group, he still has access to the configure member roles button, and is able to assign roles within this group.

I have read http://drupal.org/node/163567 in great detail, and believe we have followed the configuration precisely. Is there a step that may be missing?

Thanks,

EDIT: Okay, so I had the configuration a little messed up. We had the User assigned to be "President" at the site wide role level, and everything was functioning as expected. Attempted to fix by removing the site level role, and applying it at group level. Now the configure member roles button is not appearing for the group that he is president of.

EDIT 2: Installed a patch, got the button to display properly for the group "President" and not display when he is not president. However, when I click on the link as the President I get a website error and an "access denied" in the error log.

EDIT 3: My temporary solution ... I found that when I reviewed the og_user_roles.module, that it frequently places calls to user_access core function, however it doesn't seem to carry the context of the group, only the user from a site wide prospective. Therefore, I changed the call to user_access to my own variant. I'm NOT recommending this, but it's working for me.

tchurch’s picture

Status: Postponed (maintainer needs more info) » Active

I assume that I'm doing something wrong.

I want only people assigned as Group Admin to be able to add/edit/delete content.
If someone belongs to 2 groups they should only be allowed to add/edit/delete content on the group they are an admin of, not others.

I set the permissions in admin/user/permissions (which I assume is site wide) so where should I define what group level content permissions they should have?

tchurch’s picture

Version: 6.x-1.5 » 6.x-4.0

Corrected version.

sun’s picture

Version: 6.x-4.0 » 6.x-1.5

Not sure whether 1.5 had such a feature, but 4.x is using Drupal's regular user roles, and the permissions of regular user roles are _always_ additive. You cannot subtract a permission.

tchurch’s picture

Can someone please clarify what's happening with this module?
I'm using version 4.0 and have this issue but it seems that two people are working on 2 different versions here.

4.0 and 1.5

Which version should I be using?

sun’s picture

Version: 6.x-1.5 » 6.x-4.0
Status: Active » Postponed (maintainer needs more info)

Sorry, wasn't clear from the follow-ups. Since you created this issue in the first place, this means that @ScottBaetz should create a separate issue for his bug report for 1.5.

4.x has been entirely rewritten and many features of the old 1.x are no longer contained. It is only doing what it is supposed to do now, in a different and very low-level way.

Could you double-check whether your issue still exists with the new 4.1 release?

sun’s picture

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

I suspect the issue has been resolved.

Sorry, without further information this issue can only be marked as won't fix.

Feel free to re-open this issue if you want to provide further information. Thanks.