Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
User cannot be client, studio/stackn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Jul 5, 2023
1 parent ab0d1f6 commit 7eb9531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get(self, request, user, project_slug):
class GrantAccessToProjectView(View):
def post(self, request, user, project_slug):
selected_username = request.POST["selected_user"]
qs = User.objects.filter(username=selected_username, is_client=False)
qs = User.objects.filter(username=selected_username)

if len(qs) == 1:
selected_user = qs[0]
Expand Down

0 comments on commit 7eb9531

Please sign in to comment.