How do i use roles as conditionals in a Field of an Entity
Summary:
We have this Entity and inside there is an specific field that we need to be updatable if a user has a specific role and not updatable if a user doesnt have the specific role, i found how to do it based on the name or displayName of the user thats currently using the system but not the role that the user have.
Here is a screenshot of what i found doing it with the name or displayName but there isnt a role:
This is the code that the function is throwing: adf.context.getSecurityContext()?.getUserProfile()?.getDisplayName() or adf.context.getSecurityContext()?.getUserProfile()?.getFirstName()
Tagged:
0