HyphaApp / hypha

Submission management software for open calls
https://www.hypha.app
BSD 3-Clause "New" or "Revised" License
67 stars 38 forks source link

Afford Submission visibility settings per Group #3959

Open bickelj opened 1 month ago

bickelj commented 1 month ago

Administrators can see "Related submissions" on a Submissions Details page. This change allows a Wagtail administrator to add visibility to any Group such that members of the Group can also see "Related submissions." This change embraces Django Group and Wagtail Setting Models such that the settings can be made within the application.

A Wagtail administrator can add visibility from the admin interface via Settings -> Submission Details Page Settings. To grant visibility, the administrator checks the "Sees related submissions" box for the Group specified in the Group dropdown. To revoke visibility, the administrator unchecks the same. However, if a user is a member of any group that has been granted visibility, the user will have visibility.

Fixes #3958

Test Steps

Using the sandbox database.

bickelj commented 1 month ago

It's not clear why these tests failed or stopped. I just ran pytest locally on this branch and they passed.

Edit: oh, I see it. Fixed and pushed.