mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
16 lines
393 B
Ruby
16 lines
393 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
|
|
|
|
before_action :limit_session_time, if: -> { !current_user }
|
|
|
|
helper_method :can?
|
|
end
|
|
end
|