On Tue, May 17, 2011 at 2:27 PM, Dimuthu Leelarathne <dimut...@wso2.com>wrote:

> Hi,
>
> On Tue, May 17, 2011 at 9:19 AM, Amila Suriarachchi <am...@wso2.com>wrote:
>
>>  renamed the admin and every one Roles. But still see the admin role as.
>>
>>
> You have to clean the database. You can see the new admin role. If you want
> to delete the existing admin role you have to explicitly delete it.
> user-mgt.xml is only for configuration. It is not recommended to use it for
> subsequent start-ups.
>
> In-order to avoid this confusion I propose to check for "-Dsetup" option
> when creating initial data in the database. WDYT ?
>

without making assumptions please try yourself with a clean build. In the
registry permissions section I can only see the admin role (not the
adminRole I set)

thanks,
Amila.

>
> tx,
> dimuthul
>
>
>
>> Please see the attachments.
>>
>> thanks,
>> Amila,
>>
>>>
>>> tx,
>>> dimuthul
>>>
>>>
>>>> And also,
>>>>
>>>> userRealm.getAuthorizationManager().isUserAuthorized(
>>>>                     loggedInUser, topicResourcePath,
>>>>
>>>> EventBrokerConstants.EB_PERMISSION_CHANGE_PERMISSION)
>>>>
>>>> returns false if user is not explicitly given the permission to that
>>>> resource. But in carbon there is a convention to
>>>> allow any user in admin role to do any activity. Then why don't we add
>>>> that rule too to the user manager.
>>>>
>>>> Then everyone does not have to repeat admin role check every where.
>>>>
>>>> thanks,
>>>> Amila.
>>>>
>>>>
>>>> [1] https://wso2.org/jira/browse/CARBON-9959
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> Carbon-dev@wso2.org
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to