Fix delete connection in API [SCI-6087] (#3684)

This commit is contained in:
artoscinote 2021-11-19 13:24:29 +01:00 committed by GitHub
parent ee8cb033fa
commit 2d6521db42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ module Api
before_action :load_experiment
before_action :load_connections
before_action :load_connection, only: %i(show destroy)
before_action :check_manage_permissions, except: %i(index show)
before_action :check_manage_permissions, except: %i(index show destroy)
def index
@connections = @connections.page(params.dig(:page, :number))