update control with cancancan in sidebar
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class Settings::CommissionersController < ApplicationController
|
||||
load_and_authorize_resource except: [:create]
|
||||
before_action :set_commissioner, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /commissioners
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Settings::CommissionsController < ApplicationController
|
||||
load_and_authorize_resource except: [:create]
|
||||
before_action :set_commission, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /commissions
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Settings::ProductsController < ApplicationController
|
||||
load_and_authorize_resource except: [:create]
|
||||
before_action :set_settings_product, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /settings/products
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Settings::PromotionsController < ApplicationController
|
||||
load_and_authorize_resource except: [:create]
|
||||
before_action :set_promotion, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /promotions
|
||||
|
||||
Reference in New Issue
Block a user