Hi,

It would be nice to allow block management to people that cannot manage site configuration (like content editors).

Comments

simon georges’s picture

Status: Active » Needs review
StatusFileSize
new2.87 KB

Patch provided.

This patch is part of the #1day1patch initiative.

randallknutson’s picture

For the blocker_ui permissions I'm good with this approach but I'm thinking we could either tie the permissions into node edit permissions or mirror those. The idea is that an end user with permission to edit a node should have the ability to change the blocks on that page as well but not other nodes.

simon georges’s picture

Either tying them to the node or adding them (something like (user_access("edit not") && user_access("manage blocks")) is totally fine by me, as long as it's possible to give access to content editors that shouldn't alter the site configuration.

randallknutson’s picture

Status: Needs review » Needs work

Updated in ed6cf64

I tied it to the node permissions for now. I'm open to making this more extensive and customizable but this is better than the high level admin that was there.

I'll leave this open to discuss even better options moving forward.

KroKroDile’s picture

StatusFileSize
new2.74 KB

Hi,

Here a patch updated (the code has changed).

KroKroDile

KroKroDile’s picture

StatusFileSize
new2.67 KB

Better with clean code

simon georges’s picture

Status: Needs work » Needs review

Changing status back to "Needs review", to have maintainer feedback.

simon georges’s picture

Issue summary: View changes

Fix grammar.

kyletaylored’s picture

Issue summary: View changes

This worked for me. +1

kyletaylored’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works well.

kyletaylored’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

Status: Fixed » Closed (fixed)

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