debian-mirror-gitlab/lib/sidebars/concerns/render_if_logged_in.rb
2023-05-27 22:25:52 +05:30

11 lines
170 B
Ruby

# frozen_string_literal: true
module Sidebars
module Concerns
module RenderIfLoggedIn
def render?
!!context.current_user
end
end
end
end