PortalSecurity.IsInRoles("Admins")(amdin文件夹下的文件只用具有Admins权限就都可以访问)

PortalSecurity.HasEditPermissions(moduleId)(其他页面中判断是否具有编辑权限)

base.UserID != -1 说明没有登陆 还有UserInfo  

DNN判断权限if (PortalSecurity.IsInRole(base.PortalSettings.RegisteredRoleName)) //true 表示登陆

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-11-20
猜你喜欢
  • 2021-07-28
  • 2022-01-09
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-12-09
相关资源
相似解决方案