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.

Comments

Krzysztof Domański created an issue. See original summary.

stborchert’s picture

This 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.

krzysztof domański’s picture

Version: » 8.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new4.9 KB
krzysztof domański’s picture

Priority: Normal » Major
StatusFileSize
new4.72 KB

Update. Last patch is out of date.

lamp5’s picture

StatusFileSize
new5.1 KB
new2.16 KB

I reviewed this patch and tested it. I added small fixes for it.

  • lamp5 committed 935c2e5 on 8.x-1.x
    Issue #3004569 by Krzysztof Domański, lamp5: Do not allow nodes to be...
lamp5’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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