Problem/Motivation
I can remove the node, even when I should not.
Proposed resolution
Check permission before generate "additional action" form element and hide the "Remove node" option if the user does not have permission to delete a specific type of node.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff-4-5.txt | 2.16 KB | lamp5 |
| #5 | merge_translations-check-delete-access-3004569-5.patch | 5.1 KB | lamp5 |
Comments
Comment #2
stborchertThis has to be done on a per-node-basis also (in
removeNode()) as it may happen that you are not allowed to delete a single node.Comment #3
krzysztof domańskiComment #4
krzysztof domańskiUpdate. Last patch is out of date.
Comment #5
lamp5I reviewed this patch and tested it. I added small fixes for it.
Comment #7
lamp5