mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
* basic-functionality demo for token CRUD * Styling for tokens crud * Tokens crud styles * Expires, not expiry * Mobile styles etc * Refresh and redirect rules for policy save and token creation * Delete method and associated serializer change * Ability-checking for tokens * Update policies acceptance tests to reflect new redirect rules * Token ability unit tests * Mirage config methods for token crud * Token CRUD acceptance tests * A couple visual diff snapshots * Add and Delete abilities referenced for token operations * Changing timeouts and adding a copy to clipboard action * replaced accessor with secret when copying to clipboard * PR comments addressed * Simplified error passing for policy editor
11 lines
361 B
JavaScript
11 lines
361 B
JavaScript
import AbstractAbility from './abstract';
|
|
import { alias } from '@ember/object/computed';
|
|
|
|
export default class extends AbstractAbility {
|
|
@alias('selfTokenIsManagement') canRead;
|
|
@alias('selfTokenIsManagement') canList;
|
|
@alias('selfTokenIsManagement') canWrite;
|
|
@alias('selfTokenIsManagement') canUpdate;
|
|
@alias('selfTokenIsManagement') canDestroy;
|
|
}
|