summaryrefslogtreecommitdiff
path: root/repoze/bfg/security.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-25 00:27:08 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-25 00:27:08 +0000
commit267f2db66f514db43d0801237213799cd6797ee4 (patch)
treeae13868d50a54f534bf594acf8b109d49ad60e09 /repoze/bfg/security.py
parent6db0d49fb607f4dc55e8612e4a658856c1afbf8b (diff)
downloadpyramid-267f2db66f514db43d0801237213799cd6797ee4.tar.gz
pyramid-267f2db66f514db43d0801237213799cd6797ee4.tar.bz2
pyramid-267f2db66f514db43d0801237213799cd6797ee4.zip
Change the semantics of IForbiddenAppFactory.
Diffstat (limited to 'repoze/bfg/security.py')
-rw-r--r--repoze/bfg/security.py6
1 files changed, 4 insertions, 2 deletions
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')