added AdminProductsViewSet for users with role SITE_ADMIN
This commit is contained in:
@@ -2,7 +2,7 @@ from rest_framework import routers
|
||||
|
||||
from core.views import CustomUserViewSet
|
||||
from companies.views import CompanyViewSet, MyCompanyViewSet
|
||||
from products.views import ProductViewSet, MyProductsViewSet
|
||||
from products.views import ProductViewSet, MyProductsViewSet, AdminProductsViewSet
|
||||
from history.views import HistorySyncViewSet
|
||||
from stats.views import StatsLogViewSet
|
||||
|
||||
@@ -16,6 +16,7 @@ router.register('companies', CompanyViewSet, basename='company')
|
||||
router.register('my_company', MyCompanyViewSet, basename='my-company')
|
||||
router.register('products', ProductViewSet, basename='product')
|
||||
router.register('my_products', MyProductsViewSet, basename='my-products')
|
||||
router.register('admin_products', AdminProductsViewSet, basename='admin-product')
|
||||
router.register('history', HistorySyncViewSet, basename='history')
|
||||
router.register('stats', StatsLogViewSet, basename='stats')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user