Example #1
0
 public static bool IsDisabled(this IWebItem item, Guid userID, WebItemSecurity webItemSecurity)
 {
     return(item != null && (!webItemSecurity.IsAvailableForUser(item.ID, userID) || !item.Visible));
 }
Example #2
0
 public static bool IsDisabled(this IWebItem item, WebItemSecurity webItemSecurity, AuthContext authContext)
 {
     return(item.IsDisabled(authContext.CurrentAccount.ID, webItemSecurity));
 }
Example #3
0
 public static bool IsLicensed(this IWebItem item)
 {
     return(WebItemSecurity.IsLicensed(item));
 }
Example #4
0
 public static bool IsDisabled(this IWebItem item)
 {
     return(item != null &&
            (!WebItemSecurity.IsAvailableForUser(item.ID.ToString("N"), SecurityContext.CurrentAccount.ID) || !item.IsLicensed()));
 }
Example #5
0
 public static bool IsDisabled(this IWebItem item, Guid userID)
 {
     return(item != null && (!WebItemSecurity.IsAvailableForUser(item.ID.ToString("N"), userID) || !item.Visible));
 }
Example #6
0
 public WebItemManagerSecurity(WebItemSecurity webItemSecurity, AuthContext authContext, WebItemManager webItemManager)
 {
     WebItemSecurity = webItemSecurity;
     AuthContext     = authContext;
     WebItemManager  = webItemManager;
 }