From b91019f4457140963face170c255cdef34199055 Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Fri, 29 Jan 2016 16:14:43 +0100 Subject: [PATCH] fix typo authentication_class in RolesAPI --- src/authentic2/api_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/authentic2/api_views.py b/src/authentic2/api_views.py index 1ca830f..51e4f4b 100644 --- a/src/authentic2/api_views.py +++ b/src/authentic2/api_views.py @@ -330,7 +330,7 @@ router = SimpleRouter() router.register(r'users', UsersAPI, base_name='a2-api-users') class RolesAPI(APIView): - authentication_class = (authentication.BasicAuthentication) + authentication_classes = (authentication.BasicAuthentication) permission_classes = (permissions.IsAuthenticated,) def initial(self, request, *args, **kwargs): @@ -343,7 +343,7 @@ class RolesAPI(APIView): perm = 'a2_rbac.change_role' authorized = request.user.has_perm(perm, obj=self.role) if not authorized: - raise PermissionDenied(u'User not allowed to change role') + raise PermissionDenied(u'User not allowed to change role') def post(self, request, *args, **kwargs): self.role.members.add(self.member) -- 2.7.0.rc3