Commit a9c409d7 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[selectors] take care, Session has no cnx

branch : stable
parent c10164464afc
......@@ -1342,7 +1342,7 @@ class match_user_groups(ExpectedValueSelector):
def __call__(self, cls, req, rset=None, row=None, col=0, **kwargs):
if not req.cnx:
if getattr(req, 'cnx', True): # default to True for repo session instances
return 0
user = req.user
if user is None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment