hook_permission() defines a permission per bundle (I have 2 now) to create new panels panes, however this doesn't work at all when not using uid 1. I've been playing with the access method in the PanelsPaneController class, but changing the create $op to something like underneath didn't work either, even after toggling the permission.

  return user_access('create fieldable ' . $entity->bundle);

That was getting errors and notices because $entity was simply NULL (though not sure why). So I just added the 'create fieldable panels panes' permission to hook_permission. Patch coming up, however, I'm not sure if that's the way you intented it to be.

Comments

swentel’s picture

StatusFileSize
new631 bytes

Patch attached.

merlinofchaos’s picture

StatusFileSize
new1.04 KB

This patch appears to fix the issue. Requires a menu cache clear.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.