public function acceptRegistration(Registration $registration, $grantHd = false, $grantWatermark = false)
    {
        $user = $registration->getUser();
        $collection = $registration->getCollection($this->app);

        $this->aclProvider->get($user)->give_access_to_sbas([$collection->get_sbas_id()]);
        $this->aclProvider->get($user)->give_access_to_base([$collection->get_base_id()]);
        $this->aclProvider->get($user)->update_rights_to_base(
            $collection->get_base_id(),
            [
                \ACL::CANPUTINALBUM   => true,
                \ACL::CANDWNLDHD      => (bool)$grantHd,
                \ACL::NOWATERMARK     => (bool)$grantWatermark,
                \ACL::CANDWNLDPREVIEW => true,
                \ACL::ACTIF           => true
            ]
        );
        $this->em->remove($registration);
        $this->em->flush();
    }
public function acceptRegistration(Registration $registration, $grantHd = false, $grantWatermark = false)
    {
        $user = $registration->getUser();
        $collection = $registration->getCollection($this->app);

        $this->aclProvider->get($user)->give_access_to_sbas([$collection->get_sbas_id()]);
        $this->aclProvider->get($user)->give_access_to_base([$collection->get_base_id()]);
        $this->aclProvider->get($user)->update_rights_to_base(
            $collection->get_base_id(),
            [
                \ACL::CANPUTINALBUM   => true,
                \ACL::CANDWNLDHD      => (bool)$grantHd,
                \ACL::NOWATERMARK     => (bool)$grantWatermark,
                \ACL::CANDWNLDPREVIEW => true,
                \ACL::ACTIF           => true
            ]
        );
        $this->em->remove($registration);
        $this->em->flush();
    }
public function acceptRegistration ( Registration $ registration , $ grantHd = false , $ grantWatermark = false ) { $ user = $ registration -> getUser ( ) ; $ collection = $ registration -> getCollection ( $ this -> app ) ; $ this -> aclProvider -> get ( $ user ) -> give_access_to_sbas ( [ $ collection -> get_sbas_id ( ) ] ) ; $ this -> aclProvider -> get ( $ user ) -> give_access_to_base ( [ $ collection -> get_base_id ( ) ] ) ; $ this -> aclProvider -> get ( $ user ) -> update_rights_to_base ( $ collection -> get_base_id ( ) , [ \ ACL :: CANPUTINALBUM => true , \ ACL :: CANDWNLDHD => ( bool ) $ grantHd , \ ACL :: NOWATERMARK => ( bool ) $ grantWatermark , \ ACL :: CANDWNLDPREVIEW => true , \ ACL :: ACTIF => true ] ) ; $ this -> em -> remove ( $ registration ) ; $ this -> em -> flush ( ) ; }
Accepts a registration.

@param Registration $registration
@param bool         $grantHd
@param bool         $grantWatermark
Accepts a registration .