1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

feat: Add INTERNAL_ACCESS_TOKEN to support internal user configuration

This commit is contained in:
Maksim Eltyshev 2025-07-07 21:35:37 +02:00
parent b61b4e658f
commit 4346b7040a
8 changed files with 55 additions and 20 deletions

View file

@ -0,0 +1,12 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
module.exports = async function isExternal(req, res, proceed) {
if (req.currentUser.id === User.INTERNAL.id) {
return res.notFound(); // Forbidden
}
return proceed();
};