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); }
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; }