If a user has the permission to edit the content type, but not fiddle with the block settings, things like visibility are returned to their default values. The attached patch, which will have incorrect line numbers as it is patched against the D6 port (#254339), adds a permission check to the hook_nodeapi update/insert op to prevent this.

Comments

dropcube’s picture

Status: Needs review » Needs work

Could you please provide a patch for the 5.x branch ?

jhedstrom’s picture

StatusFileSize
new1.7 KB

Here is the patch against the 5.x branch

dropcube’s picture

Status: Needs work » Fixed

Committed to 5.x branch and HEAD. Good catch! Thanks jhedstrom.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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