Also cancan issue in mac controller

This commit is contained in:
Will Bradley 2013-09-28 19:36:23 -07:00
parent 7bfd45a163
commit 7cd33ff030

View File

@ -10,7 +10,7 @@ rescue_from CanCan::AccessDenied do |exception|
end
end
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