update authorize

This commit is contained in:
Aung Myo
2017-06-23 09:41:48 +06:30
parent 5abda623ff
commit 01e5b7ba6c
60 changed files with 1141 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
class Crm::BookingsController < BaseCrmController
load_and_authorize_resource
def update_booking
booking = Booking.find(params[:booking_id])

View File

@@ -1,4 +1,5 @@
class Crm::CustomersController < BaseCrmController
load_and_authorize_resource except: [:create]
before_action :set_crm_customer, only: [:show, :edit, :update, :destroy]
# GET /crm/customers

View File

@@ -1,4 +1,5 @@
class Crm::DiningQueuesController < BaseCrmController
load_and_authorize_resource
before_action :set_dining_queue, only: [:show, :edit, :update, :destroy]
# GET /crm/dining_queues