refactor(application_component): add current_administrateur
This commit is contained in:
parent
0e610179fb
commit
7e7363c8c3
1 changed files with 4 additions and 0 deletions
|
@ -9,4 +9,8 @@ class ApplicationComponent < ViewComponent::Base
|
||||||
def current_user
|
def current_user
|
||||||
controller.current_user
|
controller.current_user
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def current_administrateur
|
||||||
|
controller.current_administrateur
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue