booked/lib/Application/Authorization/AuthorizationService.php
/**
     * @param UserSession $reserver user who is requesting access to perform action
     * @param int $reserveForId user to reserve for
     * @return bool
     */
@param UserSession $reserver user who is requesting access to perform action
@param int $reserveForId user to reserve for
@return bool
@param UserSession $reserver user who is requesting access to perform action @param int $reserveForId user to reserve for @return bool
public function CanReserveFor(UserSession $reserver, $reserveForId)
    {
        if ($reserveForId == $reserver->UserId)
        {
            return true;
        }
        return $this->IsAdminFor($reserver, $reserveForId);
    }
public function CanReserveFor ( UserSession $ reserver , $ reserveForId ) { if ( $ reserveForId == $ reserver -> UserId ) { return true ; } return $ this -> IsAdminFor ( $ reserver , $ reserveForId ) ; }
@param UserSession $reserver user who is requesting access to perform action
 @param int $reserveForId user to reserve for
 @return bool
@param UserSession $reserver user who is requesting access to perform action @param int $reserveForId user to reserve for @return bool