debian-mirror-gitlab/lib/sidebars/concerns/render_if_logged_in.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
170 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# frozen_string_literal: true
module Sidebars
module Concerns
module RenderIfLoggedIn
def render?
!!context.current_user
end
end
end
end