Skip to content

Commit 2396fe8

Browse files
committed
fix permission bug
Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
1 parent 8beda5a commit 2396fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

account/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def patch(self, request, uid):
153153
"detail": "You have no permission to change this user"
154154
}, status=status.HTTP_403_FORBIDDEN)
155155

156-
if request_is_staff != None and request_is_staff != user.is_active:
156+
if request_is_staff != None and request_is_staff != user.is_staff:
157157
return Response({
158158
"detail": "You have no permission to change this user"
159159
}, status=status.HTTP_403_FORBIDDEN)

0 commit comments

Comments
 (0)