From 5f18f3447477b7286708946b9ef3f41ca9ee160d Mon Sep 17 00:00:00 2001 From: Uwe Ilgenstein Date: Wed, 4 Dec 2024 17:14:43 +0100 Subject: [PATCH] BC-8348 - Implement Sharing and Copying of Room Boards (#3549) * exclude room sidebar item for unauthorized users --- helpers/handlebars/middleware.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/handlebars/middleware.js b/helpers/handlebars/middleware.js index 76a3084471..2c50c52041 100644 --- a/helpers/handlebars/middleware.js +++ b/helpers/handlebars/middleware.js @@ -9,6 +9,7 @@ const { ALERT_STATUS_URL, SC_THEME, } = require('../../config/global'); +const { permission } = require('process'); const makeActive = (items, currentUrl) => { currentUrl += '/'; @@ -181,6 +182,7 @@ module.exports = (req, res, next) => { testId: 'Rooms', icon: 'account-supervisor-circle-outline', link: '/rooms', + permission: 'ROOM_CREATE', }); }