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
AgentsController, AggregatorListingsController, CategoriesController, DashboardController, DeliveryOrderItemsController, DeliveryOrdersController, DeliveryStopsController, DeliveryVehiclesController, ListingApprovalsController, ListingsController, LocationsController, OrderItemsController, OrdersController, ProductInclusionRequestsController, ProductsController, QuotationItemsController, QuotationsController, RequestForQuotationsController, RetailersController, RfqItemsController, SubSuppliersController, SupplierProductsController, SuppliersController, 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 |