EPiServer.Security.PrincipalInfo.HasEditorAccess
和 和有什么不一样EPiServer.Security.PrincipalInfo.HasEditAccess
?
//亚历山大
EPiServer.Security.PrincipalInfo.HasEditorAccess
和 和有什么不一样EPiServer.Security.PrincipalInfo.HasEditAccess
?
//亚历山大
查看反射器中的代码,我看到了:
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 仅在 OnPageEditControls 的 PropertyXhtmlStringControl 中使用,所以我的猜测是有能力只为用户提供页面编辑权限并将其排除在完整编辑器之外。