Set name from current user to new jobs in form

This commit is contained in:
2024-09-05 12:30:13 +02:00
parent 68ced40cbf
commit 26ccaa9bb4
3 changed files with 7 additions and 3 deletions

View File

@@ -26,6 +26,10 @@ module ApplicationHelper
controller.class.name.split("::").first=="Admin"
end
def is_admin_or_operator?
current_user.admin? || current_user.operator?
end
def profile?
controller_name=="profiles"
end