Merge branch 'main' into groups-capabilities
This commit is contained in:
11 files changed
+423
-204
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import factory from '../generated/factories/credential-library';
|
||||
import { random, system } from 'faker';
|
||||
import permissions from '../helpers/permissions';
|
||||
|
||||
const types = ['vault'];
|
||||
|
||||
@@ -7,6 +8,14 @@ export default factory.extend({
|
||||
id: (i) => `credential-library-id-${i}`,
|
||||
type: (i) => types[i % types.length],
|
||||
|
||||
authorized_actions: () =>
|
||||
permissions.authorizedActionsFor('credential-library') || [
|
||||
'no-op',
|
||||
'read',
|
||||
'update',
|
||||
'delete',
|
||||
],
|
||||
|
||||
attributes() {
|
||||
switch (this.type) {
|
||||
case 'vault':
|
||||
|
||||
Reference in new issue
Block a user