Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dismiss reports #12

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Dismiss reports #12

wants to merge 3 commits into from

Conversation

DarkPurple141
Copy link
Contributor

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

@DarkPurple141 DarkPurple141 added the enhancement New feature or request label Apr 11, 2019
@DarkPurple141 DarkPurple141 self-assigned this Apr 11, 2019
@@ -60,3 +60,13 @@ exports.getReportSummary = function ({ user, query }, res, next) {
.then(getResponseHandler(res))
.catch(next)
}

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.

2 participants