Skip to content

Conversation

@ihorsokhanexoft
Copy link
Contributor

@ihorsokhanexoft ihorsokhanexoft commented Oct 2, 2025

Purpose

Any user can access moderation pages regardless of his permission, however only moderators and admins should be able to do it

Changes

Adjusted MustBeModerator permission that controls access to moderation pages (collections, preprints, registrations)
Adjusted ContributorOrModerator permission that controls viewing registration actions (only moderators and admins can do that)

QA Notes

Would be nice if QA team tests all endpoints manually and separately. The reason is that I manually opened appropriate pages to check what requests are made on these pages. All of them had MustBeModerator permission.

Notes

  1. CollectionProviderActionList view is not used anywhere, so can be removed in the future
  2. CollectionProviderSubmissionList, PreprintProviderPreprintList, RegistrationProviderSubmissionList - have custom permissions where usual user has access to specific data (like you are either admin or object is public/published). I assume this kind of data is displayed somewhere else for ordinary users, so they weren't covered with tests

Ticket

https://openscience.atlassian.net/browse/ENG-9050?atlOrigin=eyJpIjoiYmVhNDBlOTA2OTBmNDE4MWFhNTgzN2I5ZTc3ZmExYWIiLCJwIjoiaiJ9

@adlius adlius merged commit 38ad074 into CenterForOpenScience:feature/pbs-25-19 Oct 2, 2025
7 checks passed
adlius added a commit that referenced this pull request Oct 3, 2025
* [ENG-9020] Custom html host for legacy OSF (#11338)

* custom html host for legacy OSF

* fixed html links, added a test

* anyone can duplicate public project (structure only)

* remove capture_notifications as the result of rebasing from pbs-25-19

* allow READ users to create guid for files

* validate only on permission change (#11336)

* Fix fail from first attempt (#11342)

* only moderator and admin can access moderation tabs (#11343)

---------

Co-authored-by: ihorsokhanexoft <isokhan@exoft.net>
Co-authored-by: Brian J. Geiger <bgeiger@pobox.com>
Co-authored-by: Brian J. Geiger <bgeiger@cos.io>
Co-authored-by: Anton Krytskyi <ant.krytskyi@gmail.com>
Co-authored-by: bodintsov <bodintsov@exoft.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants