In a current project I want to be able to set property level permissions. All is working if I set the condition to Umb.Condition.CurrentUser.IsAdmin. But I need the opposite. Disable a property for NON admin users and I thought I have seen such a condition somewhere but can’t find it anymore.
We would accept a PR adding that to the core, if anyone wanted to give it a go. Shouldn’t be too hard duplicating the IsAdmin one and negating the logic.
Maybe a more generic Umb.Condition.IsNot() would be nice? So you can just test if something is not something specific, like Umb.Condition.IsNot(Umb.Condition.CurrentUser.IsAdmin)?
Yeah, you could add some arguments to the existing IsAdmin condition (such as inverse: boolean), however a generic IsNot condition on random constants is probably not going to be easy to make.