Fix dashboard PUT endpoint

master
esensar 2018-09-23 15:04:02 +02:00
parent 7d26d9dc5a
commit 624f9c2b41
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class DashboardResource(ProtectedResource):
@use_args(DashboardWrapperSchema())
@swag_from('swagger/update_dashboard_spec.yaml')
def put(self, dashboard_id, args):
def put(self, args, dashboard_id):
requested_dashboard = dashboard.get_dashboard(dashboard_id)
if requested_dashboard.account_id != g.current_account.id:
abort(403, message='You are not allowed to access this dashboard',