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
1 changed files with 2 additions and 2 deletions

View File

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