From 56800627aae17e5206eb9fec66bbffd28c6db037 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 20 Feb 2023 11:54:07 +0000 Subject: [PATCH] fix perms --- CommonServer/Services/AccessTokenService.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CommonServer/Services/AccessTokenService.ts b/CommonServer/Services/AccessTokenService.ts index 7b0bec4e71..69333a4d32 100644 --- a/CommonServer/Services/AccessTokenService.ts +++ b/CommonServer/Services/AccessTokenService.ts @@ -54,11 +54,6 @@ export default class AccessTokenService { _type: 'UserGlobalAccessPermission', }; - // if user is a part of any project then, he is the project member. - if (projectIds.length > 0) { - permissionToStore.globalPermissions.push(Permission.ProjectMember); - } - await GlobalCache.setJSON('user', userId.toString(), permissionToStore); return permissionToStore;