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:
parent
b61b4e658f
commit
4346b7040a
8 changed files with 55 additions and 20 deletions
12
server/api/policies/is-external.js
Executable file
12
server/api/policies/is-external.js
Executable 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();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue