|
@@ -2,7 +2,7 @@ from rest_framework import permissions
|
|
|
|
|
|
|
|
|
class UserCanReadTicketListPermission(permissions.BasePermission):
|
|
|
- def has_object_permission(serf, request, view, obj):
|
|
|
+ def has_object_permission(self, request, view, obj):
|
|
|
return request.user.is_superuser or obj.group in request.user.groups.all()
|
|
|
|
|
|
|