stadust / pointercrate

Rewrite of the https://pointercrate.com backend in Rust
MIT License
78 stars 50 forks source link

Lock submissions cannot be overwritten by Moderator+ #80

Closed vulcanium4 closed 4 weeks ago

vulcanium4 commented 1 year ago

Currently nobody can override lock submissions which makes it difficult to reorder submission orders.

stadust commented 1 year ago

The check for this is here: https://github.com/stadust/pointercrate/blob/a3683bdab3c028398e5b702079df1570fd943782/pointercrate-demonlist-api/src/endpoints/record.rs#L126-L134 It should be a simple case of extending the inner if statement with && !is_team_member. However, adding some testing for this would also be nice

stadust commented 1 month ago

Since the core problem leading to this ask will be addressed by #154, I am closing this issue as "not planned"