Skip to content

Commit

Permalink
api: fix Export.Update query
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Nov 8, 2019
1 parent 0f7fbf5 commit ca00029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/vpsadmin/api/resources/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class Update < HaveAPI::Actions::Default::Update

authorize do |u|
allow if u.role == :admin
restrict user_id: u.id
restrict exports: {user_id: u.id}
allow
end

Expand Down

0 comments on commit ca00029

Please sign in to comment.