Add no access role, replace ST V3 refs with machine

This commit is contained in:
Tuan Dang
2023-11-27 09:59:15 +07:00
parent 63df0dba64
commit 99c41bb63b
21 changed files with 69 additions and 65 deletions
@@ -310,7 +310,7 @@ export const getAuthDataProjectPermissions = async ({
role = "viewer";
break;
}
case ActorType.SERVICE_V3: {
case ActorType.MACHINE: {
const machineMembership = await MachineMembership.findOne({
machineIdentity: authData.authPayload._id,
workspace: workspaceId