You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2013/09/09 11:53:45 UTC

[25/50] [abbrv] git commit: updated refs/heads/1867-feature-plugins to 8aad450

Fauxton: Fix auth bug not showing accessible page


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

Branch: refs/heads/1867-feature-plugins
Commit: 27b9feb910229ca3ec01f79b7671dd7a9b9adc01
Parents: d8f1201
Author: Garren Smith <ga...@gmail.com>
Authored: Mon Aug 19 17:01:39 2013 +0200
Committer: Jan Lehnardt <ja...@apache.org>
Committed: Mon Sep 9 11:16:43 2013 +0200

----------------------------------------------------------------------
 src/fauxton/app/addons/auth/base.js   | 3 +--
 src/fauxton/app/addons/auth/routes.js | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/27b9feb9/src/fauxton/app/addons/auth/base.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/auth/base.js b/src/fauxton/app/addons/auth/base.js
index 3502edd..9f9a332 100644
--- a/src/fauxton/app/addons/auth/base.js
+++ b/src/fauxton/app/addons/auth/base.js
@@ -49,8 +49,7 @@ function(app, FauxtonAPI, Auth) {
     };
 
     var authDenied = function () {
-      app.masterLayout.setView('#dashboard', new Auth.NoAccessView());
-      app.masterLayout.renderView('#dashboard');
+      FauxtonAPI.navigate('/noAccess');
     };
 
     FauxtonAPI.auth.registerAuth(auth);

http://git-wip-us.apache.org/repos/asf/couchdb/blob/27b9feb9/src/fauxton/app/addons/auth/routes.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/auth/routes.js b/src/fauxton/app/addons/auth/routes.js
index ecd45f2..fe40a77 100644
--- a/src/fauxton/app/addons/auth/routes.js
+++ b/src/fauxton/app/addons/auth/routes.js
@@ -52,6 +52,7 @@ function(app, FauxtonAPI, Auth) {
     noAccess: function () {
       this.crumbs = [{name: 'Access Denied', link:"#"}];
       this.setView('#dashboard-content', new Auth.NoAccessView());
+      this.apiUrl = 'noAccess';
     },
   });