remove unsetting deniedPermissions

This commit is contained in:
Maidul Islam
2023-09-15 09:53:17 -04:00
parent 029766c534
commit adfa90340d
+1 -4
View File
@@ -691,7 +691,7 @@ export const backfillPermission = async () => {
$exists: true, $exists: true,
$ne: [] $ne: []
}, },
role: MEMBER role: MEMBER,
}) })
.populate<{ workspace: IWorkspace }>("workspace") .populate<{ workspace: IWorkspace }>("workspace")
.lean(); .lean();
@@ -753,9 +753,6 @@ export const backfillPermission = async () => {
$set: { $set: {
role: CUSTOM, role: CUSTOM,
customRole: role customRole: role
},
$unset: {
deniedPermissions: 1
} }
}); });
} }