Hi,
I'm trying to do $subject using getAllowedUIResourcesForUser() method. When
only the admin role exists in the system, it always returns an empty array.
It works fine after adding another role.

I'm using the following code block for this.

UserRealm userRealm = BPMNOSGIService.getUserRealm();
String[] permissionArray =
userRealm.getAuthorizationManager().getAllowedUIResourcesForUser(username,"/permission/admin/manage");

Am I missing something here? Is this a known bug?

Regards,
Vinod

Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to