og_menu appears to be completely broken, except while logged in as user 1. For all other administrators, whether local accounts or LDAP accounts, it is non-functional. For example:
As user 1 on a fresh Drupal (7.10, "standard" profile) install, the following test works as expected:
1. Enable og_menu and all dependencies
2. Create a new content type, of type "Group"
3. Edit a menu, and choose the group from the "Enable this menu for the following group" drop-down
As any other (administrator) user, however, the drop-down menu is empty and there are two "Notice" errors:
* Notice: Undefined property: OgGroup::$tid in og_menu_form_menu_edit_menu_alter() (line 361 of /srv/drupal/7/sites/all/modules/og_menu/og_menu.module).
* Notice: Undefined property: OgGroup::$title in og_menu_form_menu_edit_menu_alter() (line 361 of /srv/drupal/7/sites/all/modules/og_menu/og_menu.module).
The administrator role has the "Administer Organic groups permissions" permission, and I'm subscribed to the group as the other admin user.
Am I missing something, or was this module really never tested as another admin, other than user 1? I have also tested this in 7.x-2.x-dev, with the same results.
Comments
Comment #1
rv0 commentedTry the latest dev for og_menu
Which version of OG are you using?
Comment #2
keith4 commentedThe latest dev for og_menu still exhibits this behavior.
Do I need to pair that with the latest dev of OG, too? The test setup was the stable OG (7.x-1.3)
Comment #3
rv0 commentedOk, found the bug.
Although OG Menu has been tested in a lot of ways in multi user setups, you are right that this usecase hasn't been tested.
Will commit a fix asap. To be continued.
Comment #4
rv0 commentedA more appropriate title.
Comment #5
rv0 commentedWas just some legacy code that never got ported I think.
Committed a fix:
http://drupalcode.org/project/og_menu.git/commit/9803e0f
Do keep in mind you will need the correct permissions. A normal member will only see the groups he has access to.
Please re-open if there is still an issue with this