protected override void EditModel() { SecuritySystem.ReloadPermissions(); typeof(DevExpress.ExpressApp.Win.SystemModule.EditModelController).Invoke(this, "UpdateActivity"); if (SecuritySystem.Instance is IRequestSecurity) { SecuritySystem.Demand(new ModelOperationPermissionRequest()); } else { SecuritySystem.Demand(new EditModelPermission(ModelAccessModifier.Allow)); } EditModelCore(); }
void ExportAction_Executing(object sender, System.ComponentModel.CancelEventArgs e) { SecuritySystem.Demand(new ExportPermissionRequest()); }