public function denyTermsOfUse($sbas_id)
    {
        try {
            $databox = $this->findDataboxById((int) $sbas_id);

            $this->getAclForUser()->revoke_access_from_bases(
                array_keys($this->getAclForUser()->get_granted_base([], [$databox->get_sbas_id()]))
            );
            $this->getAclForUser()->revoke_unused_sbas_rights();

            $this->getAuthenticator()->closeAccount();

            $ret = ['success' => true, 'message' => ''];
        } catch (\Exception $exception) {
            $ret = ['success' => false, 'message' => $exception->getMessage()];
        }

        return $this->app->json($ret);
    }
public function denyTermsOfUse($sbas_id)
    {
        try {
            $databox = $this->findDataboxById((int) $sbas_id);

            $this->getAclForUser()->revoke_access_from_bases(
                array_keys($this->getAclForUser()->get_granted_base([], [$databox->get_sbas_id()]))
            );
            $this->getAclForUser()->revoke_unused_sbas_rights();

            $this->getAuthenticator()->closeAccount();

            $ret = ['success' => true, 'message' => ''];
        } catch (\Exception $exception) {
            $ret = ['success' => false, 'message' => $exception->getMessage()];
        }

        return $this->app->json($ret);
    }
public function denyTermsOfUse ( $ sbas_id ) { try { $ databox = $ this -> findDataboxById ( ( int ) $ sbas_id ) ; $ this -> getAclForUser ( ) -> revoke_access_from_bases ( array_keys ( $ this -> getAclForUser ( ) -> get_granted_base ( [ ] , [ $ databox -> get_sbas_id ( ) ] ) ) ) ; $ this -> getAclForUser ( ) -> revoke_unused_sbas_rights ( ) ; $ this -> getAuthenticator ( ) -> closeAccount ( ) ; $ ret = [ 'success' => true , 'message' => '' ] ; } catch ( \ Exception $ exception ) { $ ret = [ 'success' => false , 'message' => $ exception -> getMessage ( ) ] ; } return $ this -> app -> json ( $ ret ) ; }
Deny database terms of use

@param  integer      $sbas_id
@return Response
Deny database terms of use