mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-31 19:59:31 -05:00
Compare commits
2 Commits
renovate/a
...
fix-user-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4933748f2b | ||
|
|
2da404953b |
@@ -182,7 +182,10 @@ router.post<
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get<{ id: string }>('/:id', async (req, res, next) => {
|
router.get<{ id: string }>(
|
||||||
|
'/:id',
|
||||||
|
isAuthenticated([Permission.MANAGE_USERS, Permission.WATCHLIST_VIEW]),
|
||||||
|
async (req, res, next) => {
|
||||||
try {
|
try {
|
||||||
const userRepository = getRepository(User);
|
const userRepository = getRepository(User);
|
||||||
|
|
||||||
@@ -196,7 +199,8 @@ router.get<{ id: string }>('/:id', async (req, res, next) => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
next({ status: 404, message: 'User not found.' });
|
next({ status: 404, message: 'User not found.' });
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
router.use('/:id/settings', userSettingsRoutes);
|
router.use('/:id/settings', userSettingsRoutes);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user