From 267f2db66f514db43d0801237213799cd6797ee4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 25 May 2009 00:27:08 +0000 Subject: Change the semantics of IForbiddenAppFactory. --- repoze/bfg/security.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'repoze/bfg/security.py') diff --git a/repoze/bfg/security.py b/repoze/bfg/security.py index bd1edaf6d..ba89a80e3 100644 --- a/repoze/bfg/security.py +++ b/repoze/bfg/security.py @@ -147,7 +147,8 @@ class ACLSecurityPolicy(object): return [] - forbidden = UnauthorizedApp + def forbidden(self, context, request): + return UnauthorizedApp() class InheritingACLSecurityPolicy(object): """ A security policy which uses ACLs in the following ways: @@ -272,7 +273,8 @@ class InheritingACLSecurityPolicy(object): return allowed - forbidden = UnauthorizedApp + def forbidden(self, context, request): + return UnauthorizedApp() def get_remoteuser(request): user_id = request.environ.get('REMOTE_USER') -- cgit v1.2.3