mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
fix perms
This commit is contained in:
parent
2a79136734
commit
56800627aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user