Also cancan issue in mac controller
This commit is contained in:
parent
7bfd45a163
commit
7cd33ff030
|
@ -10,7 +10,7 @@ rescue_from CanCan::AccessDenied do |exception|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
load_and_authorize_resource :mac, :except => :create
|
load_and_authorize_resource :mac, :except => :create
|
||||||
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