mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
only backfill roles for non empty permissions array
This commit is contained in:
committed by
Akhil Mohan
parent
43b97b411b
commit
9c9d46824c
@@ -678,7 +678,8 @@ export const backfillPermission = async () => {
|
||||
await Membership.updateMany(
|
||||
{
|
||||
deniedPermissions: {
|
||||
$exists: true
|
||||
$exists: true,
|
||||
$ne: []
|
||||
},
|
||||
role: MEMBER
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user