feat: 🎸 add role set-grants ability

This commit is contained in:
Randall Morey committed 2021-09-30 15:21:45 -04:00
1 parent 1646132db3
commit 3022ca5a53
6 files changed
+112 -49

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import ModelAbility from './model';
/**
* Provides abilities for roles.
*/
export default class RoleAbility extends ModelAbility {
// =permissions
/**
* @type {boolean}
*/
get canSetGrants() {
return this.hasAuthorizedAction('set-grants');
}
}