authorization
This commit is contained in:
parent
3fc7f9f884
commit
cf4cb74087
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
class BarcodesController < ApplicationController
|
class BarcodesController < ApplicationController
|
||||||
load_and_authorize_resource :product
|
load_and_authorize_resource :product, only: :create
|
||||||
load_and_authorize_resource :barcode, through: :product, shallow: true
|
load_and_authorize_resource :barcode, through: :product, only: :create
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@barcode.save
|
@barcode.save
|
||||||
|
|
Loading…
Reference in a new issue