Please submit an issue or pull request. https://github.com/Pylons/pyramid/issues/new/choose
--steve On 11/11/18 at 1:24 PM, [email protected] (Gerhard Schmidt) pronounced: > I'm doing some tests writing for an project of mine and come to testing > permissions. I use DummySecurityPolicy in most of my tests to speedup > testing. But there is a small problem with the code. > > DummySecurityPolicy.principals_allowed_by_permission() returns always > the result of DummySecurityPolicy.effective_principals() regardless if > permissive is True or False. > > It should return [] if permissive is set to False. > > So the code should look like this. > > def principals_allowed_by_permission(self, context, permission): > if self.permissive: > return self.effective_principals(None) > else: > return [] ------------------------ Steve Piercy, Eugene, OR -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/r480Ps-10126i-CDEFC3CA1ADD45AA9601C3B271A6179D%40Steves-iMac.local. For more options, visit https://groups.google.com/d/optout.
