mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-06 11:10:08 +00:00
14 lines
265 B
Ruby
14 lines
265 B
Ruby
# frozen_string_literal: true
|
|
|
|
module InitializesCurrentUserMode
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
helper_method :current_user_mode
|
|
end
|
|
|
|
def current_user_mode
|
|
@current_user_mode ||= Gitlab::Auth::CurrentUserMode.new(current_user)
|
|
end
|
|
end
|