volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Publishing restricted blocks

Crb
Crb

Hello everybody, i discovered something weird and i don't know how to fix it.

I have a page containing two content areas (CA1 and CA2). Also, i have a block (B1). CA1 is set to allow B1 and CA2 is set to not allow it (check code). 

[AllowedTypes(typeof(AllowedBlockName),
            RestrictedTypes = new[] { typeof(B1)})]

After this, i create a new B1 block in assets pane. I try to drag it to CA2 but nothing happens (as expected). I try to drag it to CA1, CA1 accepts it (as expected). Next I try to drag it from CA1 to CA2 and ... it is accepted (not ok). If I drag again another instance of B1 to CA1 and publish on the page i will have two B1 blocks. 

Also, my CA1 is limited to only one block so i am 100% sure that the rendered block is part of CA2.

How can I fix this issue. Happened to someone else? What did you do?

#179435
Jun 12, 2017 14:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.