add security
This commit is contained in:
@@ -86,5 +86,6 @@ class OrdersController < ApplicationController
|
||||
|
||||
def set_relation_options
|
||||
@lists = List.all
|
||||
@suppliers = Supplier.all
|
||||
end
|
||||
end
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ Qrammer::Application.routes.draw do
|
||||
devise_for :suppliers
|
||||
devise_for :administrators
|
||||
|
||||
#authenticate :administrator do
|
||||
authenticate :administrator do
|
||||
resources :users
|
||||
resources :tables
|
||||
resources :orders do
|
||||
@@ -16,7 +16,7 @@ Qrammer::Application.routes.draw do
|
||||
resources :lists
|
||||
resources :products
|
||||
resources :product_categories
|
||||
#end
|
||||
end
|
||||
|
||||
get '/supplier' => 'supplier#home', as: :supplier_root
|
||||
get '/supplier/active_orders' => 'supplier#active_orders', as: :supplier_active_orders
|
||||
|
||||
@@ -33,6 +33,10 @@ Alleen restaurant kan rekening afsluiten, als dit nog niet is gebeurd voor een t
|
||||
|
||||
Eén lijst tegelijk actief? (wel handig en duidelijk!!!)
|
||||
|
||||
/user/list_products_for_table
|
||||
if occupied
|
||||
keep checking if table is available, add order options if it is
|
||||
|
||||
|
||||
Sales arguments:
|
||||
- Safer because of personalized ordering, less incentive to leave without payment
|
||||
|
||||
Reference in New Issue
Block a user