Repository navigation
Conversation
|
Looks good to me. One non-blocking note: there are now two permissions about viewing collaborators.
Checked against a project: user.has_perm("projects.view_collaborators", project)
Checked against a single collaborator: user.has_perm("projects.view_collaboration", collaboration) Since the second one now contradicts the first, it might be worth making it defer to the new rule for consistency |
Also, let's merge this to staging first. I want to see if anything else (front or backend) comes up now that we actually show the collaborators for other members. I suspect something might crop up that we'll want to do a follow up about |
|
@duckduckgrayduck is this what you had in mind? Also, I opened up #545 against staging. |
view_collaboration is checked against a collaboration, but can_view_collaborators expects a project, so this would raise as written if anything called it. I'm probably overthinking it anyways, as this is currently unused. If it ever does come into use, we can worry about it then. You can revert the last commit. |
3f6292c to
427d630
Compare
|
Ok, done. I need to learn more about how DRF permissions work. |
Closes #534. Gates the project collaborator queryset with a new
projects.view_collaboratorspermission, which is true for all of the project's collaborators and false otherwise.