Разница между HasEditorAccess и HasEditAccess?

В чем разница между EPiServer.Security.PrincipalInfo.HasEditorAccess а также EPiServer.Security.PrincipalInfo.HasEditAccess?

//Александр

1 ответ

Решение

Глядя на код в отражателе, я вижу это:

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 разрешается в "/episerver/CMS/Editor/", _editPath разрешается в "/episerver/CMS/edit/"

Похоже, что HasEditorAccess используется только в PropertyXhtmlStringControl для OnPageEditControls, поэтому я предполагаю, что существуют возможности предоставить пользователю только права на редактирование страницы и не допускать их в полном редакторе.

Другие вопросы по тегам