22 lines
469 B
JavaScript
22 lines
469 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import AuthMethodAbility from 'api/abilities/auth-method';
|
|
|
|
export default class OverrideAuthMethodAbility extends AuthMethodAbility {
|
|
/**
|
|
* These override abilities are temporary and just part of Phase 1
|
|
* of LDAP auth method implementation.
|
|
*/
|
|
|
|
get canRead() {
|
|
return !this.model.isLDAP && super.canRead;
|
|
}
|
|
|
|
get canMakePrimary() {
|
|
return !this.model.isLDAP;
|
|
}
|
|
}
|