Exemplo n.º 1
0
 public bool HasPermissions(UserPermissions p)
 {
     if (null == Permissions)
     {
         return(false);
     }
     if (p.Dashboard && !Permissions.Dashboard)
     {
         return(false);
     }
     if (p.StandardReports && !Permissions.StandardReports)
     {
         return(false);
     }
     if (p.FinancialReports && !Permissions.FinancialReports)
     {
         return(false);
     }
     if (p.Users && !Permissions.Users)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 public bool HasPermissions(UserPermissions p)
 {
     if (null == Permissions) return false;
     if (p.Dashboard && !Permissions.Dashboard) return false;
     if (p.StandardReports && !Permissions.StandardReports) return false;
     if (p.FinancialReports && !Permissions.FinancialReports) return false;
     if (p.Users && !Permissions.Users) return false;
     return true;
 }