Skip to content

Commit 76fe136

Browse files
fix: project join for admin and members (#6097)
* chore: add enum role comparison * chore: add member also to join a project
1 parent c4a5c59 commit 76fe136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/plane/app/views/project/invite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def create(self, request, slug):
136136
member=request.user, workspace__slug=slug, is_active=True
137137
)
138138

139-
if workspace_member.role != ROLE.ADMIN:
139+
if workspace_member.role not in [ROLE.ADMIN.value, ROLE.MEMBER.value]:
140140
return Response(
141141
{"error": "You do not have permission to join the project"},
142142
status=status.HTTP_403_FORBIDDEN,

0 commit comments

Comments
 (0)