From 65292af9cb87ec48be08752e5bb0c158cdad5d53 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 23 Jan 2018 13:12:42 +0630 Subject: [PATCH] update ablity for waiter --- app/models/ability.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 8877fc61..a72a47d2 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -183,7 +183,9 @@ class Ability can :index, :home can :show, :home - + elsif user.role == "waiter" + can :index, :home + can :show, :home end end end