feat: 🎸 implement user account association abilities

This commit is contained in:
Randall Morey committed 2021-10-01 14:19:06 -04:00
1 parent 8da8fddf29
commit 8deaaa312a
8 files changed
+108 -24

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import ModelAbility from './model';
/**
* Provides abilities for users.
*/
export default class UserAbility extends ModelAbility {
// =permissions
/**
* @type {boolean}
*/
get canAddAccounts() {
return this.hasAuthorizedAction('add-accounts');
}
/**
* @type {boolean}
*/
get canRemoveAccounts() {
return this.hasAuthorizedAction('remove-accounts');
}
}