Some string permission conditions behave unexpectedly when the value is null #64
Labels
Complexity: EXTREME
This issue involves resolving complex features and/or understanding the project trajectory
Module: API
This issue pertains to the apps/api module
Priority: LOW
This issue isn't critical, security-related, or significantly beneficial to users.
Type: Bug
Something isn't working
By default, the Guest group currently has permission to read Productions that match the following condition:
This allows us to add the word "private" to the start of team notes in order to make it visible only to members. However, if the
teamNotes
field isnull
, the rule check will fail, preventing them from seeing the production, despite the fact that itsteamNotes
fielld obviously does not start with "private". This may or may not have something to do with the fact that it's an inverted condition (i.e., theNOT
).A temporary workaround for situations like this is to add an explicit condition for when the value is null:
The text was updated successfully, but these errors were encountered: