From e9513206cd0711506fb63cb0ae19f48b0d8bc8c2 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 5 Oct 2012 12:34:42 -0700 Subject: [PATCH] fix pyramid request.has_perm() for guests --- edbob/pyramid/subscribers.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/edbob/pyramid/subscribers.py b/edbob/pyramid/subscribers.py index 2f30feb..d68d480 100644 --- a/edbob/pyramid/subscribers.py +++ b/edbob/pyramid/subscribers.py @@ -76,8 +76,6 @@ def context_found(event): request.user = Session.query(edbob.User).get(uuid) def has_perm(perm): - if not request.user: - return False return has_permission(request.user, perm) request.has_perm = has_perm