Creator role not working

Vote:
 

Hi


I'm running a CMS 8.8 site with webforms. (yep)

I have a button which should be visible if the logged on user has AccessRight.Delete on the current page. This is implemented in code like this:

lnkDeleteButton.Visible = CurrentPage.QueryDistinctAccess(AccessLevel.Delete);

In editmode, it's set that the Creator-role should have Delete access, but the user who actually created the page does not see the deletebutton. (I have also verified that the "Last published by" is the logged on user, and hence the creator of the page)

Is there anything I'm missing with the Creator-role and the Delete access in editmode? 

#145169
Feb 26, 2016 10:56
Vote:
 

Sounds like it should work. Maybe set up logging with episerver.logging and log roles on user and the return value of query distinct access. You have tested the functionality with user with and without the creator role?

Also might be that you overwrite value of visible later in page life cycle. It wouldn't be the first time :)

#145172
Feb 26, 2016 12:51
Vote:
 

Thanks Daniel, thats what i thought. I will investigate further :)

#145173
Feb 26, 2016 13:06
* 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.