Advanced Permissions and Block Types

I am developing a site with different areas. Some global, some basic.

Now i enabled advanced permissions and set only specific blocks allowed to be added in an area. (Header Image area only accepts header images).

If i am logged in as superAdmin, nothing changes. I can add every BlockType.

If i log in as the customer (User is in Group Admins) if i want to add a block, the List is empty, no Block to select for adding. I tried this with custom blocks from my package and core blocks with the same result.

What am i missing here?

kind regards

You’ve set the blocks and stacks permissions as well? From your description, it sounds like you may have only set the area permissions.

I have not configured anything there but it is as screenshoted: Add Block/Stack can be done by admins.

I can Add Blocks to Areas where i did not configure permissions like normal. All BlockTypes are available for my admin-user (normal admin, not a superadmin) but when i restrict to block types, i have no block to select.

New insights. It seems to work but only in a specific way:

here is my setup:
Screenshot from 2024-12-03 09-27-08

area:

Then when i click the area-Label and choose “Add Block” i get presented with nothing:
Screenshot from 2024-12-03 09-28-47

BUT, when i choose the plus sign top left “+” i can drag the allowed Blocks (here Accordion/Autonav as demo) to the Area. I can not drag any other Blocks to the area.

Now i am ahpopy that it works but bothered i have to use the (often laggy) drag-and-drop. I also teach my customers to use the “non-drag” way to add Blocks (i.e. users with trackpads on older laptops or the like have troubles with the dragging)

Is this a bug?

Oh, that does sound like a bug if this is a fresh install. It’s supposed to work the way you see with the + sign. Are there any JavaScript errors when you add a block from the area menu? You might consider filing a bug report here: Issues · concretecms/concretecms · GitHub

I just fought with this as well. I didn’t know about the ‘global’ setting for Stacks and Blocks in the Dashboard and fought with this for DAYS!! I ended up specifying the individual blocks that the ‘User’ can add directly in the Blocks and Stacks Permission section. I added the group called ‘Head Coach’ in there and then went to Details and added the blocks they were allowed to add anywhere that they were allowed to add blocks. I’m not sure if this will help in your situation but the blocks end up showing up properly when the Head Coach edits their page.

2 Likes

Thanks mhawke! I am gonna try this. Looks promising. If i can then restrict some Areas it would be nice!

1 Like