I am running Drupal 6.6 and OG User Roles 6.x.1.0. I have applied the Drupal 6 user.module patch. I have turned on the Clear Cache setting. I am still having the following problem:
Created a role called blog author. Gave it rights to create blogs. Created a user called sally. Gave her membership in two OG's. Gave her blog author rights in one group using Configure Member Roles. When she logs in, at the sitewide level she has no content creation rights or menu. Same for the group where she's not a blog author. In the group where she is a blog author, Create Content menu shows up but leads to Access Denied.
I have read all the issues on this topic I could find, and tried everything I could think of. The only non-core modules I'm using are Views, OG, OG User Roles, and OG Views Integration. What am I missing?
Comments
Comment #1
somebodysysop commentedDoes OGUR respect any group role (assigned using "Configure member roles") that you assign?
Comment #2
outinsun commentedYes. I can successfully grant a user access to a news feed within a group using OGUR. But granting them rights to create any type of content causes the Create Content link to show up in the right place but leads to Access Denied.
Comment #3
somebodysysop commentedCan you provide sample output from your og_user_test table that shows this particular transaction? See: http://drupal.org/node/164038
Comment #4
outinsun commentedI turned on OGUR debugging, created a new user called harry, gave him blog author privileges in OG One, then logged in as him and tried to create content in OG One. Output from og_user_test is below:
"testDate","testUser","testUserName","testGroup","testFunction","testSubFunction","testString","testStatus","testURI","testAArg0","testAArg1","testAArg2","testAArg3","testPerm"
"2008-12-10 12:55:36 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/og/og_user_roles (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","og","og_user_roles",,"Roles Returned: (authenticated user)"
"2008-12-10 12:55:37 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/og/og_user_roles (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","og","og_user_roles",,"Roles Returned: (authenticated user)"
"2008-12-10 12:55:37 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/og/og_user_roles (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","og","og_user_roles",,"Roles Returned: (authenticated user)"
"2008-12-10 12:55:54 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","build",,,"Roles Returned: (authenticated user)"
"2008-12-10 12:55:54 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","build",,,"Roles Returned: (authenticated user)"
"2008-12-10 12:55:54 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build (http://localhost:8888/drupal-6.6/admin/og/og_user_roles)","admin","build",,,"Roles Returned: (authenticated user)"
"2008-12-10 12:56:20 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build/database ()","admin","build","database",,"Roles Returned: (authenticated user)"
"2008-12-10 12:56:20 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build/database ()","admin","build","database",,"Roles Returned: (authenticated user)"
"2008-12-10 12:56:20 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/build/database ()","admin","build","database",,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:06 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/build/database)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:06 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/build/database)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:06 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/build/database)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:11 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin (http://localhost:8888/drupal-6.6/og)","admin",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:11 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin (http://localhost:8888/drupal-6.6/og)","admin",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:11 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin (http://localhost:8888/drupal-6.6/og)","admin",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:13 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user (http://localhost:8888/drupal-6.6/admin)","admin","user",,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:13 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user (http://localhost:8888/drupal-6.6/admin)","admin","user",,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:13 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user (http://localhost:8888/drupal-6.6/admin)","admin","user",,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:15 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user (http://localhost:8888/drupal-6.6/admin/user)","admin","user","user",,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:15 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user (http://localhost:8888/drupal-6.6/admin/user)","admin","user","user",,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:15 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user (http://localhost:8888/drupal-6.6/admin/user)","admin","user","user",,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:18 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:18 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:18 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","0",,"0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (anonymous user)"
"2008-12-10 01:16:38 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:38 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/admin/user/user/create (http://localhost:8888/drupal-6.6/admin/user/user/create)","admin","user","user","create","Roles Returned: (authenticated user)"
"2008-12-10 01:16:43 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/user/user/create)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:43 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/user/user/create)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:43 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/admin/user/user/create)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:16:45 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8 (http://localhost:8888/drupal-6.6/og)","og","users","8",,"Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:45 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8 (http://localhost:8888/drupal-6.6/og)","og","users","8",,"Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:46 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8 (http://localhost:8888/drupal-6.6/og)","og","users","8",,"Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:48 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:48 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:48 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:53 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:53 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:53 pm","6","harry","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user)"
"2008-12-10 01:16:53 pm","6","harry","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user)"
"2008-12-10 01:16:53 pm","6","harry","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user)"
"2008-12-10 01:16:53 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:53 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:53 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/add_user (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","add_user","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:55 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:55 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:16:56 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/add_user)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:00 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/roles)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:00 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/roles)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:01 pm","1","jes","8","og_user_roles_all_roles","64","group context: ",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/roles)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:01 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/roles)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:02 pm","1","jes","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/og/users/8/roles (http://localhost:8888/drupal-6.6/og/users/8/roles)","og","users","8","roles","Roles Returned: (authenticated user,blog author,random,storyauthor)"
"2008-12-10 01:17:10 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/logout (http://localhost:8888/drupal-6.6/og/users/8/roles)","logout",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:10 pm","1","jes","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/logout (http://localhost:8888/drupal-6.6/og/users/8/roles)","logout",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:10 pm","0",,"0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/ (http://localhost:8888/drupal-6.6/og/users/8/roles)","node",,,,"Roles Returned: (anonymous user)"
"2008-12-10 01:17:15 pm","0",,"0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node?destination=node (http://localhost:8888/drupal-6.6/)","node",,,,"Roles Returned: (anonymous user)"
"2008-12-10 01:17:15 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node?destination=node (http://localhost:8888/drupal-6.6/)","node",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:15 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node (http://localhost:8888/drupal-6.6/)","node",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:15 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node (http://localhost:8888/drupal-6.6/)","node",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:15 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node (http://localhost:8888/drupal-6.6/)","node",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:18 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/node)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:18 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/node)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:18 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/og (http://localhost:8888/drupal-6.6/node)","og",,,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:20 pm","6","harry","8","og_user_roles_all_roles","1","group context: ",,"/drupal-6.6/node/8 (http://localhost:8888/drupal-6.6/og)","node","8",,,"Roles Returned: (authenticated user,blog author)"
"2008-12-10 01:17:20 pm","6","harry","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/node/8 (http://localhost:8888/drupal-6.6/og)","node","8",,,"Roles Returned: (authenticated user,blog author)"
"2008-12-10 01:17:20 pm","6","harry","8","og_user_roles_all_roles","0","group context: 8",,"/drupal-6.6/node/8 (http://localhost:8888/drupal-6.6/og)","node","8",,,"Roles Returned: (authenticated user,blog author)"
"2008-12-10 01:17:22 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node/add (http://localhost:8888/drupal-6.6/node/8)","node","add",,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:22 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node/add (http://localhost:8888/drupal-6.6/node/8)","node","add",,,"Roles Returned: (authenticated user)"
"2008-12-10 01:17:22 pm","6","harry","0","og_user_roles_all_roles","0","group context: ",,"/drupal-6.6/node/add (http://localhost:8888/drupal-6.6/node/8)","node","add",,,"Roles Returned: (authenticated user)"
Comment #5
somebodysysop commentedIn the future, you may wish to provide detail info such as the username of the user we need to track, the url where we are having the problem, and what role(s) the user should have. Also, if you're going to post log information, you should only post the information relevant to your problem.
This was all we needed:
The first thing I did was search for ognodeadd, which is the function OGUR uses to create the group level "Create content" menu and to add nodes. It is not present at all in your output.
Installation of OGUR automatically changes the "create" links in the group menu to ognodeadd links. And, even if it didn't, you are clearly not using the "create" links from the group menu because they would return a group context on "node/add".
Also, from the OGUR project page:
So, in summary, I don't know what you are doing, but whatever you are doing, it is out of group context, and OGUR only works within group context. Furthermore, OGUR does NOT support site installs which use subdirectories.
Comment #6
outinsun commentedApologies if I broke protocol. I didn't know what you needed, so I tried to be complete with my SQL dump. For what it's worth, when I turned on a block for group details, that block shows the right content creation links based on user/group role, and properly links to ognodeadd, so I got something at least partly right :-). Appreciate your patience and help.
Comment #7
somebodysysop commented