Skip to content

Commit

Permalink
[bugfix] Fix the arguement order for security function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tao feng committed Apr 3, 2018
1 parent f6fe11f commit e0dda3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def accessible_by_user(self, database, datasource_names, schema=None):
full_names = {d.full_name for d in user_datasources}
return [d for d in datasource_names if d in full_names]

def merge_perm(self, permission_name, view_menu_name):
def merge_perm(self, view_menu_name, permission_name):
# Implementation copied from sm.find_permission_view_menu.
# TODO: use sm.find_permission_view_menu once issue
# https://github.com/airbnb/superset/issues/1944 is resolved.
Expand Down

0 comments on commit e0dda3c

Please sign in to comment.