fix permission
This commit is contained in:
@@ -21,7 +21,7 @@ from . import views
|
||||
from posts.views import PostViewSet
|
||||
from members.views import MemberViewSet
|
||||
from rest_framework import routers
|
||||
from authentications.decorators import authenticated_user
|
||||
# from authentications.decorators import authenticated_user
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router.register(r'posts', PostViewSet)
|
||||
@@ -30,7 +30,7 @@ router.register(r'members', MemberViewSet)
|
||||
urlpatterns = [
|
||||
path('posts/', include('posts.urls')),
|
||||
path('admin/doc/', include('django.contrib.admindocs.urls')),
|
||||
path('admin/', authenticated_user(admin.site.urls)),
|
||||
path('admin/', admin.site.urls),
|
||||
path('auth/', include('authentications.urls')),
|
||||
path('', views.index, name='home'),
|
||||
path('index.html', views.index, name='home'),
|
||||
|
||||
Reference in New Issue
Block a user