ui: add warning for domain_role

This commit is contained in:
undefined committed 2022-02-24 22:36:49 +08:00
1 parent 70e011105a
commit a1d1aa40ba
6 files changed
+29 -11

No files matched your search

+1 -1
View File
@@ -231,7 +231,7 @@ class DomainJoinApplicationsHandler extends ManageHandler {
async get() {
const r = await domain.getRoles(this.domain);
const roles = r.map((role) => role._id).sort();
this.response.body.rolesWithText = roles.map((role) => [role, role]);
this.response.body.rolesWithText = roles.filter((i) => !['default', 'guest'].includes(i)).map((role) => [role, role]);
this.response.body.joinSettings = domain.getJoinSettings(this.domain, roles);
this.response.body.expirations = { ...domain.JOIN_EXPIRATION_RANGE };
if (!this.response.body.joinSettings) {