Reputation: 345
So, I am able to do this fine when testing my custom app in the debug environment provided by rally-app-builder. I use Rally.environment.getContext().getUser() to get the current user, and from the returned object I get the role from the "Role" field. But, for some weird reason, when I use the exact same code in Rally production, Rally.environment.getContext().getUser() returns a different object that has no "Role" field. What is the solution for this problem? thanks.
Upvotes: 1
Views: 65
Reputation: 8410
:sad trombone:
This is a defect for sure. The context object is populated a little differently between the external App SDK bootstrapper and the way it is created when running within the product.
I'm going to file a defect and get this resolved ASAP. I'll post back here once the fix has been released. Can you work around it for now?
Upvotes: 1