Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好可以在语法上定义外联网/匿名用户是否可以访问内容树项目?我需要它,就像我的 IHttpModule 中的附加案例一样。谢谢。
您可以使用AuthorizationManager类来获取任何访问权限信息,如下所示:
AuthorizationManager
Sitecore.Security.AccessControl.AuthorizationManager.IsAllowed( item, Sitecore.Security.AccessControl.AccessRight.ItemRead, User.FromName("domain\\name", AccountType.User) );