Tab "Content Types" shows for all members
joewang - October 9, 2008 - 14:38
| Project: | Content Type Administration by Organic Group |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | paulbooker |
| Status: | closed |
Jump to:
Description
The tab supposedly only for group admins displays for all members at the top of the Group homepage.
I'm using the latest dev that was committed today.

#1
In addition, the tab shows up for all standard group content (not just designated group nodes)
#2
The "working" development release was only available for download from today (10th October) and your posts are from the (9th October) so it may be you are using the broken development release.
If you would confirm your using the latest release , ill then investigate you problem(s) later today.
Thanks for you help.
Paul
#3
I just grabbed the latest dev (10/10) and it's the same behavior.
#4
In the latest CVS, og_content_types_admin.module says:
<?phpfunction _og_content_type_admin_is_admin_access_callback($nid){
$group = node_load($nid);
//$return = (isset($group->og_selective) && _og_content_type_admin_is_admin($group)) ? TRUE : FALSE;
return TRUE;
return $return;
}
?>
Is the code right here, or just for debugging? This probably causes the tab to show everywhere.
#5
I think I fixed this by uncommenting your line and getting rid of
return TRUE;#6
looking into this now ...
#7
Thanks Joe,
That modification was left over from migration work . I'll have the correct version committed by the end of the week.
Best, Paul
#8