diff options
| author | Gerhard Schmidt <estartu@augusta.de> | 2018-11-11 13:14:03 +0100 |
|---|---|---|
| committer | Gerhard Schmidt <estartu@augusta.de> | 2018-11-11 13:14:03 +0100 |
| commit | c4c56cc48776dfc079a8f225a0fd38bd740661be (patch) | |
| tree | 51137b02c1680f807e450788e2812fd1fc88b58e /src | |
| parent | 420ea05bee3ad376c4369f401b2696b31312c5e1 (diff) | |
| download | pyramid-c4c56cc48776dfc079a8f225a0fd38bd740661be.tar.gz pyramid-c4c56cc48776dfc079a8f225a0fd38bd740661be.tar.bz2 pyramid-c4c56cc48776dfc079a8f225a0fd38bd740661be.zip | |
principals_allowed_by_permission returned all principals regardless if permissiv is true or false. It should return a empty list if permissive is False.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pyramid/testing.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pyramid/testing.py b/src/pyramid/testing.py index f700b5a4e..23392772c 100644 --- a/src/pyramid/testing.py +++ b/src/pyramid/testing.py @@ -91,7 +91,10 @@ class DummySecurityPolicy(object): return self.permissive def principals_allowed_by_permission(self, context, permission): - return self.effective_principals(None) + if self.permissive: + return self.effective_principals(None) + else: + return None class DummyTemplateRenderer(object): |
