Skip to content

Commit

Permalink
feat: add spatie role
Browse files Browse the repository at this point in the history
  • Loading branch information
pachonjcl committed Apr 22, 2024
1 parent 398df1b commit 077fe9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,12 @@ function assignSpatieRole($user)
break;
case 'service':
$user->assignRole('greenhouse-service-account');

case 'project-developer':
case 'funder':
case 'government':
$user->assignRole($user->role);

break;
}
}

0 comments on commit 077fe9e

Please sign in to comment.