2018-10-22 03:00:50 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-04-26 06:05:18 -04:00
|
|
|
# This is a base controller for doorkeeper.
|
|
|
|
# It adds the `can?` helper used in the views.
|
|
|
|
module Gitlab
|
|
|
|
class BaseDoorkeeperController < ActionController::Base
|
|
|
|
include Gitlab::Allowable
|
2020-08-05 17:09:40 -04:00
|
|
|
include EnforcesTwoFactorAuthentication
|
|
|
|
|
2018-04-26 06:05:18 -04:00
|
|
|
helper_method :can?
|
|
|
|
end
|
|
|
|
end
|