function getPermissionsForProjectUser(ProjectUser $project_user)
 {
     $permissions = array();
     $pups = ProjectUserPermissions::findAll(array('conditions' => '`project_id` = ' . $project_user->getProjectId() . ' and `user_id` = ' . $project_user->getUserId()));
     if (is_array($pups)) {
         foreach ($pups as $pup) {
             $permissions[] = Permissions::getPermissionString($pup->getPermissionId());
         }
     }
     //if
     return $permissions;
 }