private function doResetRightsOnCollection(\ACL $acl, \collection $collection)
    {
        $baseId = $collection->get_base_id();

        $acl->set_limits($baseId, false);
        $acl->remove_quotas_on_base($baseId);
        $acl->set_masks_on_base($baseId, '0', '0', '0', '0');
        $acl->update_rights_to_base(
            $baseId,
            [
                'creationdate'      => '1',         // todo : wtf
                \ACL::CANPUTINALBUM      => true,
                \ACL::CANDWNLDHD         => true,
                \ACL::NOWATERMARK        => true,
                \ACL::CANDWNLDPREVIEW    => true,
                \ACL::CANCMD             => true,
                \ACL::CANADMIN           => true,
                \ACL::CANREPORT          => true,
                \ACL::CANPUSH            => true,
                \ACL::CANADDRECORD       => true,
                \ACL::CANMODIFRECORD     => true,
                \ACL::CANDELETERECORD    => true,
                \ACL::CHGSTATUS          => true,
                \ACL::IMGTOOLS           => true,
                \ACL::COLL_MANAGE        => true,
                \ACL::COLL_MODIFY_STRUCT => true,
                \ACL::BAS_MODIFY_STRUCT  => true
            ]
        );
    }