Beispiel #1
0
        protected static bool DisplayModule(ManagementControlAttribute control)
        {
            var result = DisplayModule(control.Module);

            if (control.SubModule.HasValue)
            {
                result = result && DisplayModule(control.SubModule.Value);
            }

            return(result);
        }
 private static bool IsControlVisibleForCurrentUser(ManagementControlAttribute control)
 {
     return control.IsVisibleForAdministrator || (SecurityContext.CurrentAccount.ID == CoreContext.TenantManager.GetCurrentTenant().OwnerId);
 }
 private static bool IsControlVisibleForCurrentUser(ManagementControlAttribute control)
 {
     return(control.IsVisibleForAdministrator || (SecurityContext.CurrentAccount.ID == CoreContext.TenantManager.GetCurrentTenant().OwnerId));
 }