poc: basic user capabilities UI
This commit is contained in:
5 files changed
+32
-16
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import Model from '@ember-data/model';
|
||||
import { attr } from '@ember-data/model';
|
||||
import { fragment } from 'ember-data-model-fragments/attributes';
|
||||
import { computed } from '@ember/object';
|
||||
|
||||
@@ -35,6 +36,11 @@ export default class BaseModel extends Model {
|
||||
|
||||
// =attributes
|
||||
|
||||
@attr({
|
||||
readOnly: true,
|
||||
emptyArrayIfMissing: true,
|
||||
}) authorized_actions;
|
||||
|
||||
set scopeModel(model) {
|
||||
if (model) {
|
||||
const json = model.serialize();
|
||||
|
||||
Reference in new issue
Block a user