server/session.py
changeset 9625 6baaca81c629
parent 9623 2171da5b9234
child 9629 8114bed10e78
equal deleted inserted replaced
9624:a42fae4cd45a 9625:6baaca81c629
  1704     rql_rewriter = cnx_attr('_rewriter')
  1704     rql_rewriter = cnx_attr('_rewriter')
  1705 
  1705 
  1706     # deprecated ###############################################################
  1706     # deprecated ###############################################################
  1707 
  1707 
  1708     @property
  1708     @property
  1709     @deprecated('[3.19] use a Connection object instead')
       
  1710     def anonymous_session(self):
  1709     def anonymous_session(self):
  1711         # XXX for now, anonymous-user is a web side option.
  1710         # XXX for now, anonymous-user is a web side option.
  1712         # It will only be present inside all-in-one instance.
  1711         # It will only be present inside all-in-one instance.
  1713         # there is plan to move it down to global config.
  1712         # there is plan to move it down to global config.
  1714         return self.user.login == self.repo.config.get('anonymous-user')
  1713         return self.user.login == self.repo.config.get('anonymous-user')