bool HasAddPermissonByQuota() { return(ModuleSecurity.HasAddPermissonByQuota(DataSet.Tables[DataSetTableName.Fields], DataSet.Tables[DataSetTableName.Data], Settings.UserRecordQuota, ModuleContext.PortalSettings.UserInfo.GetSafeUsername())); }
bool HasAddPermissonByQuota() { var userquota = Settings.UserRecordQuota; if (userquota > 0 && Request.IsAuthenticated) { var ds = UdtController.GetDataSet(false); return(ModuleSecurity.HasAddPermissonByQuota(ds.Tables[DataSetTableName.Fields], ds.Tables[DataSetTableName.Data], userquota, UserInfo.GetSafeUsername())); } return(true); }