Class: Dscf::Marketplace::ApplicationController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Dscf::Marketplace::ApplicationController
- Includes:
- Core::Authenticatable, Core::JsonResponse
- Defined in:
- app/controllers/dscf/marketplace/application_controller.rb
Direct Known Subclasses
CategoriesController, DeliveryOrderItemsController, DeliveryOrdersController, DeliveryStopsController, DeliveryVehiclesController, ListingsController, LocationsController, OrderItemsController, OrdersController, ProductsController, QuotationItemsController, QuotationsController, RequestForQuotationsController, RfqItemsController, SupplierProductsController, UnitConversionsController, UnitsController
Instance Method Summary collapse
-
#bypass_permissions_for_demo? ⇒ Boolean
TEMPORARY DEMO BYPASS: Bypass marketplace authorization checks for authenticated users only.
- #pundit_user ⇒ Object
Instance Method Details
#bypass_permissions_for_demo? ⇒ Boolean
TEMPORARY DEMO BYPASS: Bypass marketplace authorization checks for authenticated users only. Remove after the demo.
12 13 14 |
# File 'app/controllers/dscf/marketplace/application_controller.rb', line 12 def true end |
#pundit_user ⇒ Object
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 (user) end |