Class: Dscf::Marketplace::ApplicationController

Inherits:
ActionController::API
  • Object
show all
Includes:
Core::Authenticatable, Core::JsonResponse
Defined in:
app/controllers/dscf/marketplace/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#bypass_permissions_for_demo?Boolean

TEMPORARY DEMO BYPASS: Bypass marketplace authorization checks for authenticated users only. Remove after the demo.

Returns:

  • (Boolean)


12
13
14
# File 'app/controllers/dscf/marketplace/application_controller.rb', line 12

def bypass_permissions_for_demo?
  true
end

#pundit_userObject



16
17
18
19
20
21
# File 'app/controllers/dscf/marketplace/application_controller.rb', line 16

def pundit_user
  user = current_user
  return nil unless user

  bypass_permissions_on_user!(user)
end