From 7f6a8530245263a416ae1c63a2a83abb31247b28 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Sun, 11 Oct 2015 23:30:56 +0200 Subject: [PATCH] Fix for wrong permissions var name --- pillar/application/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/application/__init__.py b/pillar/application/__init__.py index 2260ebbc..6a3c6961 100644 --- a/pillar/application/__init__.py +++ b/pillar/application/__init__.py @@ -261,7 +261,7 @@ def check_permissions(resource, method): # Check if the node is public or private. This must be set for non logged # in users to see the content. For most BI projects this is on by default, # while for private project this will not be set at all. - if 'world' in permissions and method in permissions['world']: + if 'world' in resource_permissions and method in resource_permissions['world']: return abort(403)