mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Let super admins toggle admin bar
This commit is contained in:
@@ -158,4 +158,12 @@ module ApplicationHelper
|
||||
.map { |_currency, money| format_money(money) }
|
||||
.join(separator)
|
||||
end
|
||||
|
||||
def show_super_admin_bar?
|
||||
if params[:admin].present?
|
||||
cookies.permanent[:admin] = params[:admin]
|
||||
end
|
||||
|
||||
cookies[:admin] == "true"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user