Skip to content

Commit

Permalink
fix: permissions condition to fn
Browse files Browse the repository at this point in the history
  • Loading branch information
7sete7 committed Apr 15, 2024
1 parent 8771155 commit 5433b6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imports/data/filterUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import map from 'lodash/map';
import reduce from 'lodash/reduce';
import size from 'lodash/size';
import startsWith from 'lodash/startsWith';
import tail from 'lodash/tail';
import uniqBy from 'lodash/uniqBy';

import { MetaObject } from '@imports/model/MetaObject';
Expand Down Expand Up @@ -576,7 +577,7 @@ export function filterConditionToFn(condition, metaObject, req) {
return value;
}

return get(value, termParts[1]);
return get(value, tail(termParts));
});
};

Expand Down

0 comments on commit 5433b6a

Please sign in to comment.