summaryrefslogtreecommitdiff
path: root/tests/pkgs/securityapp
diff options
context:
space:
mode:
authorTheron Luhn <theron@luhn.com>2019-12-15 19:55:10 -0800
committerTheron Luhn <theron@luhn.com>2019-12-15 19:55:10 -0800
commit32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0 (patch)
tree6e9a4b0ff52843571799aa693725f22b6054662e /tests/pkgs/securityapp
parent7b74e97fd156bef6b8f347d7d38615d5bea6c967 (diff)
downloadpyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.tar.gz
pyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.tar.bz2
pyramid-32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0.zip
Revert "Bring back identity into permits."
This reverts commit 2e06fa414412688dc3b7e0b422b0fc0b96ec882f.
Diffstat (limited to 'tests/pkgs/securityapp')
-rw-r--r--tests/pkgs/securityapp/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pkgs/securityapp/__init__.py b/tests/pkgs/securityapp/__init__.py
index caf65ad4c..6c9025e7d 100644
--- a/tests/pkgs/securityapp/__init__.py
+++ b/tests/pkgs/securityapp/__init__.py
@@ -4,12 +4,12 @@ from pyramid.security import Allowed, Denied
class SecurityPolicy:
def identify(self, request):
- return self.authenticated_userid(request)
+ raise NotImplementedError() # pragma: no cover
def authenticated_userid(self, request):
return request.environ.get('REMOTE_USER')
- def permits(self, request, context, identity, permission):
+ def permits(self, request, context, permission):
userid = self.authenticated_userid(request)
if userid and permission == 'foo':
return Allowed('')