Commit 7d53db74 authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Remove useless method from VlansController

The role of this method was to list users for a vlan, this is covered in
parent aa8c08e5
Pipeline #188492 waiting for manual action with stages
in 22 minutes and 32 seconds
...@@ -82,23 +82,6 @@ class VlansController < ApplicationController ...@@ -82,23 +82,6 @@ class VlansController < ApplicationController
status: result.code status: result.code
end end
def vlan_users
allow :get
expires_in 60.seconds
result = @kavlan.vlan_users(params[:id], params[:user_id])
result['items'].each do |item|
item['links'] = links_for_item(item)
result['links'] = links_for_collection
respond_to do |format|
format.g5kcollectionjson { render json: result }
format.json { render json: result }
protected protected
def collection_path def collection_path
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment