Browse Source

refactor(nocodb): separate validatePayload and T.emit

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

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

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

Loading…
Cancel
Save