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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodeasblock.module.patch | 1.7 KB | jhedstrom |
| nodeasblock.module.patch | 3.1 KB | jhedstrom |
Comments
Comment #1
dropcube commentedCould you please provide a patch for the 5.x branch ?
Comment #2
jhedstromHere is the patch against the 5.x branch
Comment #3
dropcube commentedCommitted to 5.x branch and HEAD. Good catch! Thanks jhedstrom.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.