Adding IS guys

On Fri, Jul 29, 2016 at 3:00 PM, Vinod Kavinda <[email protected]> wrote:

> Hi Team,
> Any idea on this?
>
> Regards,
> Vinod
>
> On Fri, Jul 29, 2016 at 12:15 PM, Vinod Kavinda <[email protected]> wrote:
>
>> 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>
>>
>>
>
>
> --
> 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>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog      alokayasoya.blogspot.com
About    http://about.me/thusithathilina
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to