Files
gitlab-foss/lib/gitlab/base_doorkeeper_controller.rb
2024-01-05 09:11:29 +00:00

14 lines
328 B
Ruby

# frozen_string_literal: true
# This is a base controller for doorkeeper.
# It adds the `can?` helper used in the views.
module Gitlab
class BaseDoorkeeperController < BaseActionController
include Gitlab::Allowable
include EnforcesTwoFactorAuthentication
include SessionsHelper
helper_method :can?
end
end