add dashboard settings and customer create
This commit is contained in:
@@ -69,6 +69,17 @@ class Origami::DashboardController < BaseOrigamiController
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
#dashboard settings on/off for supervisor and cashier
|
||||
dashboard_settings = Lookup.collection_of('dashboard_settings')
|
||||
@setting_flag = true
|
||||
if !dashboard_settings.empty?
|
||||
dashboard_settings.each do |setting|
|
||||
if setting[0].to_s.downcase == current_user.role.downcase && setting[1] == '0'
|
||||
@setting_flag = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def get_all_menu
|
||||
|
||||
Reference in New Issue
Block a user