I'm going through and making security levels which have rules that follow user roles. For example, a user is assigned the "Operator" user role, and has a Security Level applied for HMI/GeneralConfig but not HMI/AdvancedConfig. For config components, I'd assign something like isAuthorized(false, "HMI/GeneralConfig")
to the enabled property.
The only problem with this is when I'm working in the designer - I don't get any of the security levels applied. Doing something like isAuthorized(false, "HMI/GeneralConfig") || {session.props.device.type} = 'designer'
works, however, I was wondering if there were any better options/recommendations.
Thanks!