2022-04-25 12:40:16 +02:00
|
|
|
class ApplicationComponent < ViewComponent::Base
|
|
|
|
include ViewComponent::Translatable
|
2022-10-12 11:48:24 +02:00
|
|
|
include FlipperHelper
|
2022-06-16 14:56:53 +02:00
|
|
|
|
2022-10-12 11:48:24 +02:00
|
|
|
def current_user
|
|
|
|
controller.current_user
|
|
|
|
end
|
2022-11-21 12:22:41 +01:00
|
|
|
|
|
|
|
def current_administrateur
|
|
|
|
controller.current_administrateur
|
|
|
|
end
|
2023-09-28 17:45:39 +02:00
|
|
|
|
|
|
|
def current_gestionnaire
|
|
|
|
controller.current_gestionnaire
|
|
|
|
end
|
2022-04-25 12:40:16 +02:00
|
|
|
end
|