Hi,

I'm trying to write some tests for the user core functionalities. While
doing so when I try to create a user from a non admin user as follows.

super.init(TestUserMode.SUPER_TENANT_USER);

userManagementClient.addUser(username, password, null, null);

Since non-admin users don't have permissions to create users this should
throws an Exception.  But this get executed and user is getting created.
When I checked the roles of the executing user at the debug time using

userManagementClient.getRolesOfCurrentUser()

It has the admin role as well.

I have create the JIRA[1]
[1] - https://wso2.org/jira/browse/TA-978


Please correct me if my assumption is wrong.

Thanks

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

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

Reply via email to