Renamed helper function or tab selector

This commit is contained in:
2024-09-05 12:31:54 +02:00
parent 26ccaa9bb4
commit 6d1fbc5af4
2 changed files with 9 additions and 9 deletions

View File

@@ -18,19 +18,19 @@ module ApplicationHelper
end
end
def operator?
def operator_tab?
controller.class.name.split("::").first=="Operator"
end
def admin?
def admin_tab?
controller.class.name.split("::").first=="Admin"
end
def profile_tab?
controller_name=="profiles"
end
def is_admin_or_operator?
current_user.admin? || current_user.operator?
end
def profile?
controller_name=="profiles"
end
end