You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ro...@apache.org on 2014/10/07 18:52:16 UTC

fauxton commit: updated refs/heads/master to 74c6ce5

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 936ed575a -> 74c6ce54a


Fix COUCHB-2171 noAccess page mixes 401 and 403 responses


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/74c6ce54
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/74c6ce54
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/74c6ce54

Branch: refs/heads/master
Commit: 74c6ce54a0fbc7c58a232638ddc1fce259f2146f
Parents: 936ed57
Author: Javier Candeira <ja...@candeira.com>
Authored: Mon Oct 6 15:26:47 2014 +1100
Committer: Javier Candeira <ja...@candeira.com>
Committed: Tue Oct 7 23:25:21 2014 +1100

----------------------------------------------------------------------
 app/addons/auth/templates/noAccess.html | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/74c6ce54/app/addons/auth/templates/noAccess.html
----------------------------------------------------------------------
diff --git a/app/addons/auth/templates/noAccess.html b/app/addons/auth/templates/noAccess.html
index 689134c..612d687 100644
--- a/app/addons/auth/templates/noAccess.html
+++ b/app/addons/auth/templates/noAccess.html
@@ -14,8 +14,13 @@ the License.
 
 <div class="span12">
   <h2>Access Denied</h2>
+  <p>You do not have permission to view this page.</p>
   <p>
-    You do not have permission to view this page.<br />
-    You might need to <a href="#login<% if (urlBack){ %>?urlback=<%-urlBack%> <% } %> ">login</a>.
+    <% if (user) { %>
+      Please request authorization from the server administrators.
+    <% } else { %>
+      You might need to <a href="#login<% if (urlBack){ %>?urlback=<%-urlBack%>  <% } %> ">login</a>.
+      </a>
+    <% } %>
   </p>
 </div>