Author: chathura
Date: Wed Jan 30 01:51:24 2008
New Revision: 13172
Log:
Restricting some actions based on the permissions of the user.
Modified:
branches/registry/1_0/modules/webapps/src/main/webapp/admin/user.jsp
Modified: branches/registry/1_0/modules/webapps/src/main/webapp/admin/user.jsp
==============================================================================
--- branches/registry/1_0/modules/webapps/src/main/webapp/admin/user.jsp
(original)
+++ branches/registry/1_0/modules/webapps/src/main/webapp/admin/user.jsp
Wed Jan 30 01:51:24 2008
@@ -158,7 +158,7 @@
while (iUserRoles.hasNext()) {
String userRole = (String) iUserRoles.next();
%>
- <tr><td><%=userRole%></td><td><% if
(!RegistryConstants.EVERYONE_ROLE.equals(userRole)) { %><a
href="/wso2registry/system/removeUserFromRole?user=<%=userDetailsAction.getUserName()%>&role=<%=userRole%>"><img
src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a><% }
%></td></tr>
+ <tr><td><%=userRole%></td><td><% if
(!RegistryConstants.EVERYONE_ROLE.equals(userRole) &&
userDetailsAction.isUserAdmin()) { %><a
href="/wso2registry/system/removeUserFromRole?user=<%=userDetailsAction.getUserName()%>&role=<%=userRole%>"><img
src="/wso2registry/admin/images/icon-trash.gif" border="0" /></a><% }
%></td></tr>
<% } %>
</table>
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev