allows method
Check if this permission set allows a specific action
Implementation
bool allows(Permission type, [String? resource]) {
return permissions.any((p) => p.matches(type, resource));
}
Check if this permission set allows a specific action
bool allows(Permission type, [String? resource]) {
return permissions.any((p) => p.matches(type, resource));
}