Fix 404 error on macs/index unauthenticated
This commit is contained in:
parent
c976a6c216
commit
d522d0a43b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user