Author: tyrell
Date: Fri Dec 7 05:12:20 2007
New Revision: 10700
Log:
Changing the logical operator from AND to OR
Modified:
trunk/mashup/java/modules/www/org/mashup.jsp
Modified: trunk/mashup/java/modules/www/org/mashup.jsp
==============================================================================
--- trunk/mashup/java/modules/www/org/mashup.jsp (original)
+++ trunk/mashup/java/modules/www/org/mashup.jsp Fri Dec 7 05:12:20 2007
@@ -434,8 +434,8 @@
<tr>
<td>
<ul>
- <!--Will be available only to users with Admin priviledges
and who are Authors of the current Mashup-->
- <% if ((RegistryUtils.isAdminRole(registry)) &&
+ <!--Will be available only to users with Admin priviledges
OR who are Authors of the current Mashup-->
+ <% if ((RegistryUtils.isAdminRole(registry)) ||
(author.equalsIgnoreCase(RegistryUtils.getCurrentUser(registry)))) { %>
<li>
<a href="#">Start|Stop this service</a>
@@ -450,8 +450,8 @@
<li>
<a href="#">Share this service</a>
</li>
- <!--Will be available only to users with Admin priviledges
and who are Authors of the current Mashup-->
- <% if ((RegistryUtils.isAdminRole(registry)) &&
+ <!--Will be available only to users with Admin priviledges
OR who are Authors of the current Mashup-->
+ <% if ((RegistryUtils.isAdminRole(registry)) ||
(author.equalsIgnoreCase(RegistryUtils.getCurrentUser(registry)))) { %>
<li>
<a href="#">Delete this service</a>
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev