Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug to use act_as user instead of user
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbose327 committed Sep 13, 2016
1 parent 89f7f89 commit 739594a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aaad/authorizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def authorize(self, user, act_as, resource, logging, info, data, content_type, a
allowed_users_list = []
allowed_actions = []
if 'action' in self.data[act_as] and self.data[act_as]['action'] != None:
for item in self.data[user]['action'][action]:
for item in self.data[act_as]['action'][action]:
temp_item = {}
if type(item) == str:
temp_item = {}
Expand Down

0 comments on commit 739594a

Please sign in to comment.