From 4b55c39f398dff35c5de5b109075d4e41f0a7db9 Mon Sep 17 00:00:00 2001 From: Tzahi12345 Date: Thu, 11 May 2023 23:14:40 -0400 Subject: [PATCH] permissions code simplified --- backend/authentication/auth.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/backend/authentication/auth.js b/backend/authentication/auth.js index 64c89f4..c630c1b 100644 --- a/backend/authentication/auth.js +++ b/backend/authentication/auth.js @@ -68,15 +68,7 @@ exports.initialize = function () { const setupRoles = async () => { const required_roles = { admin: { - permissions: [ - 'filemanager', - 'settings', - 'subscriptions', - 'sharing', - 'advanced_download', - 'downloads_manager', - 'tasks_manager' - ] + permissions: consts.AVAILABLE_PERMISSIONS }, user: { permissions: [