Skip to content

Commit

Permalink
Bugfix around specific datasource access permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Oct 6, 2015
1 parent 1494b26 commit 0b87ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def datasource(self, datasource_type, datasource_id):
'all_datasource_access', 'all_datasource_access')
datasource_access = self.appbuilder.sm.has_access(
'datasource_access', datasource.perm)
if not all_datasource_access or not datasource_access:
if not (all_datasource_access or datasource_access):
flash(
"You don't seem to have access to this datasource",
"danger")
Expand Down

0 comments on commit 0b87ea6

Please sign in to comment.