Skip to content

Commit 6bd6c1e

Browse files
author
0fflineuser
committed
fix: permission typo
1 parent 901bac3 commit 6bd6c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/routes/media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ mediaRoutes.post<
165165

166166
mediaRoutes.delete(
167167
'/:id',
168-
isAuthenticated([Permission.ADMIN, Permission.DELETE_MEDIA], {
168+
isAuthenticated([Permission.MANAGE_REQUESTS, Permission.DELETE_MEDIA], {
169169
type: 'or',
170170
}),
171171
async (req, res, next) => {

0 commit comments

Comments
 (0)