-
I assume the object returned by const operationDomain = {
userId: ["dsfdsf2023f8j3f", /*OR*/ "w023f920sdfdsf", /*OR*/ "fj230f89fjfef" ],
/*AND*/
roleCode: ["USER", /*OR*/ "MODERATOR", /*OR*/ "SUPER_ADMIN" ],
/*AND*/
...
}
// Filtered objects must satisfy the following expression:
(userId == "dsfdsf2023f8j3f" || userId == "w023f920sdfdsf" || userId == "fj230f89fjfef")
&& (roleCode == "USER" || roleCode == "MODERATOR" || roleCode == "SUPER_ADMIN")
&& ... Is this assumption correct? |
Beta Was this translation helpful? Give feedback.
Answered by
edobrb
May 29, 2022
Replies: 1 comment
-
Yes, you are correct. This is how the filter is built: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Atlinx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you are correct.
This is how the filter is built:
typetta/src/dal/dao/middlewares/securityPolicy/security.middleware.ts
Line 104 in be9ff5e