Groups - allow flagging group as su equivalent
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-10 20:06:43 -06:00
parent 91fc8a65a2
commit ef819b0a2e
4 changed files with 40 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ class GroupModel extends Model {
user_ids: [String],
posix_user_id: String,
posix_group_id: Number,
grants_sudo: { type: Boolean, default: false },
active: { type: Boolean, default: true },
ldap_visible: { type: Boolean, default: true },
}
@@ -84,6 +85,7 @@ class GroupModel extends Model {
name: this.name,
user_ids: this.user_ids,
ldap_visible: this.ldap_visible,
grants_sudo: !!this.grants_sudo,
}
}
}