Skip to content

Commit

Permalink
fix: fixed copy paste error with access level on admin community pages
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jul 29, 2024
1 parent 27af873 commit fffd6c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/services/juxt-web/routes/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ router.put('/:reportID', async function (req, res) {
});

router.get('/communities', async function (req, res) {
if (!req.moderator) {
if (!req.developer) {
return res.redirect('/titles/show');
}

Expand All @@ -185,7 +185,7 @@ router.get('/communities', async function (req, res) {
});

router.get('/communities/new', async function (req, res) {
if (!req.moderator) {
if (!req.developer) {
return res.redirect('/titles/show');
}

Expand Down Expand Up @@ -281,6 +281,9 @@ router.post('/communities/:id', upload.fields([{name: 'browserIcon', maxCount: 1
name: 'CTRbrowserHeader',
maxCount: 1
}, {name: 'WiiUbrowserHeader', maxCount: 1}]), async (req, res) => {
if (!req.developer) {
return res.redirect('/titles/show');
}
JSON.parse(JSON.stringify(req.files));
const communityID = req.params.id;
let tgaIcon;
Expand Down

0 comments on commit fffd6c1

Please sign in to comment.