Skip to content

Commit 5220f7c

Browse files
committed
Fix bugs in project permissions.
1 parent 23aaad9 commit 5220f7c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hypha/apply/funds/permissions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ def view_comments(role, user, submission) -> bool:
5757
return True
5858

5959
project = getattr(submission, "project", None)
60-
if project and can_access_project(user, project):
61-
return True
60+
if project:
61+
can_access, _ = can_access_project(user, project)
62+
if can_access:
63+
return True
6264

6365
return False
6466

0 commit comments

Comments
 (0)