From a3e711c21a3b03517be46239284b84f40bea8771 Mon Sep 17 00:00:00 2001 From: Uwe Ilgenstein Date: Mon, 2 Dec 2024 18:07:50 +0100 Subject: [PATCH] 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', }); }