Author: jonathan
Date: Wed Feb 18 15:30:32 2009
New Revision: 31084
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31084

Log:
Allow admins to change descriptions of services authored by others (hey, admins 
can delete the whole service, why not change the description?)

Modified:
   branches/mashup/java/1.5/java/modules/www/mashup.jsp

Modified: branches/mashup/java/1.5/java/modules/www/mashup.jsp
URL: 
http://wso2.org/svn/browse/wso2/branches/mashup/java/1.5/java/modules/www/mashup.jsp?rev=31084&r1=31083&r2=31084&view=diff
==============================================================================
--- branches/mashup/java/1.5/java/modules/www/mashup.jsp        (original)
+++ branches/mashup/java/1.5/java/modules/www/mashup.jsp        Wed Feb 18 
15:30:32 2009
@@ -390,7 +390,7 @@
                                 <div class="mashup_description">
                                     <span id="editDescription">
                                         <span 
id="editDescription_value"><%=description%></span>
-                                    <% if (currentUser.equals(author)) { %>
+                                    <% if (currentUser.equals(author) || 
RegistryUtils.isAdminRole(userRegistry)) { %>
                                         <span class="edit-link">[<a href="#" 
onclick="makeEditable('editDescription')">edit</a>]</span>
                                     <% } %>
                                     </span>

_______________________________________________
Mashup-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to