Skip to content

Commit

Permalink
chore: add member also to join a project
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohashescobar committed Nov 26, 2024
1 parent 7eeba26 commit 14a7ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/plane/app/views/project/invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def create(self, request, slug):
member=request.user, workspace__slug=slug, is_active=True
)

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

0 comments on commit 14a7ddc

Please sign in to comment.