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

Difference between HasEditorAccess and HasEditAccess

Hello!

What is the difference between EPiServer.Security.PrincipalInfo.HasEditorAccess and EPiServer.Security.PrincipalInfo.HasEditAccess?

//Alexander

#54807
Nov 03, 2011 14:47

Hi,

According to http://sdk.episerver.com/library/cms6.1/html/Properties_T_EPiServer_Security_PrincipalInfo.htm HasEditAccess checks for user access to the /edit pages and HasEditorAccess checks for user access to the /editor pages.  Not really sure what the /editor pages are though

#54831
Nov 04, 2011 15:50
Looking at the code in reflector, I see this:

private static readonly string _editorPath = UriSupport.ResolveUrlFromUIBySettings("Editor/");
private static readonly string _editPath = UriSupport.ResolveUrlFromUIBySettings("edit/");

...

public static bool HasEditAccess
{
get
{
return Current.HasPathAccess(EditPath);
}
}

public static bool HasEditorAccess
{
get
{
return Current.HasPathAccess(EditorPath);
}
}

_editorPath resolved to "/episerver/CMS/Editor/",
_editPath resolved to "/episerver/CMS/edit/"

It appears that HasEditorAccess is only used within the PropertyXhtmlStringControl for the OnPageEditControls so my guess would be that there are capabilities to give a user only on page edit rights and keep them out of the full editor.


#54859
Nov 07, 2011 11:02
error This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.