Esempio n. 1
0
 /**
  * Gets the role of the user in the organization.
  *
  * @param User $user
  *
  * @return int
  */
 public function getRoleOfUser(User $user)
 {
     $volunteer = new Volunteer([$user->id(), $this->id()]);
     return $volunteer->exists() ? $volunteer->role : Volunteer::ROLE_NONE;
 }