Display barcodes with api token

This commit is contained in:
Robbe Van Herck 2019-04-22 15:35:57 +02:00
parent be2a3f1535
commit 3cebd229c9
No known key found for this signature in database
GPG key ID: 4D1C8E8FBD1C7188

View file

@ -10,8 +10,8 @@
# #
class BarcodesController < ApplicationController class BarcodesController < ApplicationController
load_and_authorize_resource :product, only: :create load_and_authorize_resource :product, only: :create, except: :index
load_and_authorize_resource :barcode, through: :product, shallow: true load_and_authorize_resource :barcode, through: :product, shallow: true, except: :index
def create def create
@barcode.save @barcode.save