Closed (fixed)
Project:
OG User Roles
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2009 at 21:35 UTC
Updated:
31 Jan 2009 at 00:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunPlease try this patch and report back if it works for you.
Comment #2
somebodysysop commentedhttp://drupal.org/node/178610 consists of several issues. And, they have been resolved to my satisfaction. I need more specifics about your case in particular if you'd like me to look into it.
Comment #3
sunPatch in #1 fixes the bug where /node/add/my-content-type is redirected to /node/ognodeadd?type=my_content_type&gid... since the conversion of the passed in $_GET parameter happens too late.
This is most likely the same issue that the original poster has.
Comment #4
somebodysysop commentedHere is the current code:
Note that '-' is replaced by '_' in $type before it is used in the condition.
You are suggesting:
I don't mind making the change if it helps, but functionally, I don't see the difference between the two.
I don't see where it's too late since I do the conversion right at the top of the "if" condition for $type. What am I missing?
Which is why I asked for a clarification of this issue because it's not clear what this particular individual is having a problem with.
Comment #5
sunNote that patch in #1 is against 6.x-1.2. I did not have time to look into CVS yet.
Without setting the proper content-type name for $type
the following access check tries to check access for a nonexistent content-type:
$type should always contain the proper content-type name, at any point in time in this function.
Comment #6
somebodysysop commentedI don't think it will make a difference, but committed your change to dev branch.
Comment #7
heacu commentedsubscribing