Skip to content

Conversation

@DarkPurple141
Copy link
Contributor

Reports can now be dismissed via the API call DELETE /uni/report/<id>

Alex Hinds and others added 3 commits April 11, 2019 15:40
@DarkPurple141 DarkPurple141 added the enhancement New feature or request label Apr 11, 2019
@DarkPurple141 DarkPurple141 self-assigned this Apr 11, 2019
}

exports.dismissReport = function ({ user, params }, res, next) {
if (user.permissions < PERMISSIONS_MOD) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check shouldn't be needed because isModOrHigher middleware is run on the route

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants