Skip to content

Commit defd3e7

Browse files
chore: remove commented-out ldap.syncNow route from ldap.ts
1 parent 75c0f27 commit defd3e7

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

apps/meteor/ee/server/api/ldap.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -125,35 +125,3 @@ API.v1.post(
125125
});
126126
},
127127
);
128-
129-
// API.v1.addRoute(
130-
// 'ldap.syncNow',
131-
// {
132-
// authRequired: true,
133-
// forceTwoFactorAuthenticationForNonEnterprise: true,
134-
// twoFactorRequired: true,
135-
// // license: ['ldap-enterprise'],
136-
// },
137-
// {
138-
// async post() {
139-
// if (!this.userId) {
140-
// throw new Error('error-invalid-user');
141-
// }
142-
143-
// if (!(await hasPermissionAsync(this.userId, 'sync-auth-services-users'))) {
144-
// throw new Error('error-not-authorized');
145-
// }
146-
147-
// if (settings.get('LDAP_Enable') !== true) {
148-
// throw new Error('LDAP_disabled');
149-
// }
150-
151-
// await LDAPEE.sync();
152-
// await LDAPEE.syncAvatars();
153-
154-
// return API.v1.success({
155-
// message: 'Sync_in_progress' as const,
156-
// });
157-
// },
158-
// },
159-
// );

0 commit comments

Comments
 (0)