diff options
| author | Theron Luhn <theron@luhn.com> | 2019-12-15 19:55:10 -0800 |
|---|---|---|
| committer | Theron Luhn <theron@luhn.com> | 2019-12-15 19:55:10 -0800 |
| commit | 32bf9b3669f2ba0c4a0aaf35f4e2cdad8f9314f0 (patch) | |
| tree | 6e9a4b0ff52843571799aa693725f22b6054662e /tests/pkgs/securityapp/__init__.py | |
| parent | 7b74e97fd156bef6b8f347d7d38615d5bea6c967 (diff) | |
| download | pyramid-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/__init__.py')
| -rw-r--r-- | tests/pkgs/securityapp/__init__.py | 4 |
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('') |
