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
Comment #1
swentel commentedPatch attached.
Comment #2
merlinofchaos commentedThis patch appears to fix the issue. Requires a menu cache clear.
Comment #3
merlinofchaos commentedCommitted and pushed.