November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi,
It looks like everything is setup correctly in your code.
You could try to temporary set similar settings on Page type instead for a Block type and see if the pages are restirected.
You could also check access rights for block in admin mode: Admin->Content Type -> PageTitleBlock -> Settings -> Access Level
Or maybe there is a problem with roles assigned to user that you are using to test - he has BlockCreators role.
I've been checking to see if the access rights were applied correctly at the screen you mentioned; just shows "Everyone" for the new block. I also just did a quick test creating a new page type, and had the same results.
I made sure the role exists in the system (in case that made a difference), but got the same results.
That was the last thing I tried last night, and it did indeed reset the Access level to the one specified in code. Is that the expected behavior?
I would expect it to use whatever you had specified in your code, so no. Perhaps if you changed the model at some point, it got "stuck" somehow?
I'm trying to set the Access attribute for a block, so only a specific group is able to create that block (rather than the default "Everyone"). I'm following the info here:
http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/8/Content/Attributes/
http://world.episerver.com/documentation/Class-library/?documentId=cms/9/CD41BF37
The block is still being created with the default "Everyone" access. Am I missing something?
Sample code: