fix: grant scope field should be functional (#1147)

This commit is contained in:
Randall Morey authored and GitHub committed 2022-06-20 12:28:13 -04:00
1 parent 4ef66fdd29
commit 26baf8a80b
3 files changed
+17 -15

No files matched your search

+7
View File
@@ -23,6 +23,13 @@ export default class RoleModel extends GeneratedRoleModel {
*/
@array('string', { readOnly: true }) grant_strings;
/**
* Convenience for looking up the grant scope, if loaded.
*/
get grantScope() {
return this.store.peekRecord('scope', this.grant_scope_id);
}
// =methods
/**