fix perms

This commit is contained in:
Simon Larsen 2023-02-20 11:54:07 +00:00
parent 2a79136734
commit 56800627aa
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -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;