booked/lib/Application/Authorization/AuthorizationService.php
/**
     * @param UserSession $reserver user who is requesting access to perform action
     * @return bool
     */
@param UserSession $reserver user who is requesting access to perform action
@return bool
@param UserSession $reserver user who is requesting access to perform action @return bool
public function CanReserveForOthers(UserSession $reserver)
    {
        if ($reserver->IsAdmin) {
            return true;
        }
        $user = $this->userRepository->LoadById($reserver->UserId);
        return $user->IsGroupAdmin();
    }
public function CanReserveForOthers ( UserSession $ reserver ) { if ( $ reserver -> IsAdmin ) { return true ; } $ user = $ this -> userRepository -> LoadById ( $ reserver -> UserId ) ; return $ user -> IsGroupAdmin ( ) ; }
@param UserSession $reserver user who is requesting access to perform action
 @return bool
@param UserSession $reserver user who is requesting access to perform action @return bool