poc: basic user capabilities UI

This commit is contained in:
Randall Morey committed 2021-07-23 16:57:37 -04:00
1 parent 48dc8a392d
commit e376bb8e20
5 files changed
+32 -16

No files matched your search

+6
View File
@@ -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();