Fix 404 error on macs/index unauthenticated
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
class MacsController < ApplicationController
|
class MacsController < ApplicationController
|
||||||
load_and_authorize_resource :mac, :except => [:create, :history]
|
load_and_authorize_resource :mac, :except => [:index, :create, :history]
|
||||||
#load_and_authorize_resource :user, :through => :mac, :except => [:index, :show, :scan, :import]
|
#load_and_authorize_resource :user, :through => :mac, :except => [:index, :show, :scan, :import]
|
||||||
|
|
||||||
before_filter :arp_lookup, :only => :new
|
before_filter :arp_lookup, :only => :new
|
||||||
|
|||||||
Reference in New Issue
Block a user