diff --git a/apiserver/plane/api/views/workspace.py b/apiserver/plane/api/views/workspace.py index 64154500f..e8e7160f4 100644 --- a/apiserver/plane/api/views/workspace.py +++ b/apiserver/plane/api/views/workspace.py @@ -445,7 +445,7 @@ class WorkSpaceMemberViewSet(BaseViewSet): requested_workspace_member = WorkspaceMember.objects.get(workspace__slug=slug, member=request.user) # Check if role is being updated # One cannot update role higher than his own role - if "role" in request.data and request.data.get("role", workspace_member.role) > requested_workspace_member.role: + if "role" in request.data and int(request.data.get("role", workspace_member.role)) > requested_workspace_member.role: return Response( { "error": "You cannot update a role that is higher than your own role"