Closed (fixed)
Project:
OG User Roles
Version:
5.x-2.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Sep 2007 at 20:27 UTC
Updated:
9 Sep 2007 at 05:21 UTC
Jump to comment: Most recent file
I've been trying to set elevated privs on users to allow moderator type access in group forums. Unfortunately it doesn't seem to work within forums in the og_forum module.
I'm not sure if its og_forum isn't setting the group context properly or if its an issue with og_user_roles, but I've attached dumps from the debug table so I thought I'd start here :)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | debug2.txt | 4.8 KB | Arricc |
| #1 | og_user_roles_debug_0.txt | 13.59 KB | Arricc |
| og_user_roles_debug.txt | 13.49 KB | Arricc |
Comments
Comment #1
Arricc commentedGah. Submitted before saving some changes to the notes about the debug. Revised attached.
Comment #2
somebodysysop commentedCan you explain a little bit more about what I'm seeing and why. From what I understand, a forum node url should look like this:
http://drupal.org/forum/67
And, the og_forum manage url like this:
http://drupal.org/og_forum/manage/207
If you have customized urls on your site, I can see why og user roles doesn't locate the group context.
Comment #3
Arricc commentedYes, I am using the pathauto module to (try to) produce nice urls for all my content.
I've tried disabling that module and deleting all my url aliases but no joy.
In the debug I've attached with no fancy paths the nodes are show in the following order:
/node/690 : Group Home
/forum/23 : Click on "Group Forums" link
/forum/24 : Click on "General Discussion"
/node/691 : Click on my test post
Comment #4
somebodysysop commentedAccording to the debug sheet, the only link where there is not a group context is /node/691. Correct?
Also, what exactly do you want the user to be able to do that he can't do? At what url? What permissions does he have that should allow him to do it, and in what group role are these permissions?
Comment #5
Arricc commentedI have 2 roles - Group Founder and Group Moderator. Both those roles have (amongst other things) edit forum posts permission.
The intention is for them to be able to edit other peoples posts, but that extra level of security isn't being applied.
Node 691 is a forum post (in an og_forum) by another user. forum/24 is the General Discussion forum created by og_forum.
Comment #6
somebodysysop commentedThe only forum permissions I see are:
On my test site, I gave a user the "founder" role in a group and gave that role the "administer forums" permission. I logged in as this user and went to the group. I did not see the "Manage group forum" link in the group menu.
I then made this user an administrator for the group.
As the user, I am now able to see the "Manage group forum" link in the group menu. When I click on it, I see urls like this:
http://mysite.com/og_forum/manage/29
http://mysite.com/og_forum/manage/edit/29/26
I am able to perform all group forum management functions, including editing posts that I did not create.
So, in conclusion, there does not appear to be a problem using OG User Roles and OG Forums with respect to managing group forum posts. A user must have the OG "group admin" flag set to do this. Apparently, the "Manage group forum" link will not appear on the group menu without the admin flag set for the user. In my opinion, this is as it should be.
I don't recognize any of the urls you posted above, nor am I able to reproduce them. As OG User Roles is context sensitive, where you are in a site is extremely important. If it can't recognize where you are, it can't (and won't) assign group permissions.
If there is some logical reason why group permissions should be assignable in your circumstance, or I'm missing something here, please let me know, otherwise the current status of this issue as far as I'm concern is that the module is designed to work this way.
Comment #7
Arricc commented*sigh*
I'd excluded Forum Posts from the OG Audience targetting.
I have a grump about the way that works, but its an issue for og_forum.
Applogies.
Comment #8
somebodysysop commented