The 'Save as @bundle default' button is displayed for users that can edit a given node, and thus customize the content for that node, even if they don't have permissions to administer the default content for that bundle type. If a user clicks the button, the default is not saved, so it isn't a security issue (in my testing). It is confusing though to display that button. Patch forthcoming.

Comments

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new551 bytes

Adding an #access attribute to that button is sufficient in my testing.

lorique’s picture

StatusFileSize
new551 bytes

I tried out this patch, and sure it works but the permission is wrong. The permission used is the content permission, but what should be used for this button is the defaults permission.

I have updated the patch.

AndersNielsen’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #2 solved the problem.

heyyo’s picture

Works for me too. Would be happy to see it comitted.

damienmckenna’s picture

Title: Panelizer IPE integration should not display the 'Save as @bundle default' to u-npermissioned users » Should not display 'Save as @bundle default' in IPE to users w/o correct permissions
Component: Code » IPE integration

I'll review this soon, but I really do appreciate all of the help working out a fix and reviewing it!

damienmckenna’s picture

  • Commit e0904ac on 7.x-3.x by DamienMcKenna:
    Issue #2199859 by lorique, jhedstrom: Only show 'save as default' option...
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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