Commit ff11bc42 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Don't show edit/delete when users are read-only.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5210 b35dd754-fafc-0310-a699-88a17e54d16e
parent 10a9ce80
......@@ -44,6 +44,11 @@
Search Plugin Changelog
</h1>
<p><b>1.2.1</b> -- September 7, 2006</p>
<ul>
<li>Search results no longer shows edit and delete if users are read-only.</li>
</ul>
<p><b>1.2.0</b> -- August 7, 2006</p>
<ul>
<li>Modified search field to be required in the data form. Thanks to Alexander Gnauck.</li>
......
......@@ -105,8 +105,11 @@ Users Found: <%=users.size() %>
<th nowrap><fmt:message key="user.create.username" /></th>
<th nowrap><fmt:message key="user.create.name" /></th>
<th nowrap><fmt:message key="user.summary.created" /></th>
<% // Don't allow editing or deleting if users are read-only.
if (!UserManager.getUserProvider().isReadOnly()) { %>
<th nowrap><fmt:message key="user.summary.edit" /></th>
<th nowrap><fmt:message key="global.delete" /></th>
<% } %>
</tr>
</thead>
<tbody>
......@@ -165,6 +168,8 @@ Users Found: <%=users.size() %>
<td width="35%">
<%= user.getEmail() %> &nbsp;
</td>
<% // Don't allow editing or deleting if users are read-only.
if (!UserManager.getUserProvider().isReadOnly()) { %>
<td width="1%" align="center">
<a href="../../user-edit-form.jsp?username=<%= URLEncoder.encode(user.getUsername(), "UTF-8") %>"
title="<fmt:message key="global.click_edit" />"
......@@ -175,6 +180,7 @@ Users Found: <%=users.size() %>
title="<fmt:message key="global.click_delete" />"
><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a>
</td>
<% } %>
</tr>
<%
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment