mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 08:19:04 +00:00
10 lines
219 B
Python
10 lines
219 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from rest_framework.permissions import BasePermission
|
|
|
|
|
|
class IsAssignee(BasePermission):
|
|
def has_object_permission(self, request, view, obj):
|
|
return obj.is_assignee(request.user)
|