selectors.py
branchtls-sprint
changeset 1492 53d28ac02868
parent 1474 716f0742ee7f
child 1503 5cc3afa14e4b
equal deleted inserted replaced
1491:742aff97dbf7 1492:53d28ac02868
   402         return 1
   402         return 1
   403 
   403 
   404 @objectify_selector
   404 @objectify_selector
   405 @lltrace
   405 @lltrace
   406 def authenticated_user(cls, req, *args, **kwargs):
   406 def authenticated_user(cls, req, *args, **kwargs):
   407     """accept if user is anonymous"""
   407     """accept if user is authenticated"""
   408     if req.cnx.anonymous_connection:
   408     if req.cnx.anonymous_connection:
   409         return 0
   409         return 0
   410     return 1
   410     return 1
   411 
   411 
   412 def anonymous_user():
   412 def anonymous_user():