Add minimum support for static credential stores to admin UI (#1145)
* cred store read ability * filter out static cred stores and credentials from credential libraries * chore: 🤖 finish up minimum static cred store support Co-authored-by: dharini <dharini@hashicorp.com>
This commit is contained in:
1 parent
52904dc639
commit
4ef66fdd29
11 files changed
+50
-22
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import ModelAbility from './model';
|
||||
|
||||
/**
|
||||
* Provides abilities for credential store.
|
||||
*/
|
||||
export default class CredentialStoreAbility extends ModelAbility {
|
||||
// =permissions
|
||||
|
||||
/**
|
||||
* Only "known" credential store types may be read.
|
||||
* @type {boolean}
|
||||
*/
|
||||
get canRead() {
|
||||
return !this.model.isStatic && this.hasAuthorizedAction('read');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user