Remove admin/superadmin tests

This commit is contained in:
joker-x 2020-09-01 14:25:35 +02:00
parent 6af4c0db9e
commit 14ec6d468a
8 changed files with 15 additions and 17 deletions

View file

@ -40,8 +40,7 @@ async function getAuthenticatedConfig(context) {
user: {
id: context.user.id,
username: context.user.username,
namespace: context.user.namespace,
admin: (config.roles.global[context.user.role]["admin"] || false)
namespace: context.user.namespace
},
globalPermissions,
editors: config.editors,