blob: c8520993b8e4e20acbc1f77b677f66718026f8bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
# This is a base controller for doorkeeper.
# It adds the `can?` helper used in the views.
module Gitlab
# rubocop:disable Rails/ApplicationController
class BaseDoorkeeperController < ActionController::Base
include Gitlab::Allowable
include EnforcesTwoFactorAuthentication
include SessionsHelper
before_action :limit_session_time, if: -> { !current_user }
helper_method :can?
end
# rubocop:enable Rails/ApplicationController
end
|