Browse Source

refactor(nocodb): separate validatePayload and T.emit

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
eac353df91
  1. 2
      packages/nocodb/src/lib/services/modelVisibility.svc.ts

2
packages/nocodb/src/lib/services/modelVisibility.svc.ts

@ -12,7 +12,7 @@ export async function xcVisibilityMetaSetAll(param: {
validatePayload(
'swagger.json#/components/schemas/VisibilityRuleReq',
param.visibilityRule
),
);
T.emit('evt', { evt_type: 'uiAcl:updated' });
for (const d of param.visibilityRule) {
for (const role of Object.keys(d.disabled)) {

Loading…
Cancel
Save