mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(feature)(profile) cards backup - disallow banned users
This commit is contained in:
parent
bad7f12ad8
commit
84269657d3
@ -173,7 +173,7 @@
|
||||
|
||||
<CircleMentions/>
|
||||
|
||||
<CardsBackup/>
|
||||
<CardsBackup v-if="!$user().bannedReason"/>
|
||||
|
||||
<section class="mt-5">
|
||||
<a href="#" class="badge bg-light text-dark border" @click.prevent="logout">
|
||||
|
@ -857,7 +857,7 @@ router.post('/profile/remove-self-circle/:username', handleErrorAsync(async (req
|
||||
}));
|
||||
|
||||
router.get('/profile/export', handleErrorAsync(async (req, res) => {
|
||||
if (!req.user) {
|
||||
if (!req.user || req.user.bannedReason) {
|
||||
return res.status(401).json({error: 'Unauthorised'});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user