Skip to content

Commit 86e9351

Browse files
awgeorgeacinader
authored andcommitted
Reverse update.
1 parent c5a5f57 commit 86e9351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ class DatabaseController {
14391439
[...(auth.userRoles || [])].forEach(role => {
14401440
const fields = protectedFields[role];
14411441
if (fields) {
1442-
protectedKeys = protectedKeys.filter(fields.includes);
1442+
protectedKeys = protectedKeys.filter(v => fields.includes(v));
14431443
}
14441444
});
14451445

0 commit comments

Comments
 (0)