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

rv0’s picture

Status: Active » Postponed (maintainer needs more info)

Try the latest dev for og_menu

Which version of OG are you using?

keith4’s picture

Status: Postponed (maintainer needs more info) » Active

The 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)

rv0’s picture

Ok, 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.

rv0’s picture

Title: unable to use og_menu as anyone other than user 1 » Errors on core Menu admin page if user is not admin

A more appropriate title.

rv0’s picture

Title: Errors on core Menu admin page if user is not admin » unable to use og_menu as anyone other than user 1
Status: Active » Closed (fixed)

Was 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