You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2014/03/31 21:46:01 UTC
[07/41] couchdb commit: updated refs/heads/Update-Sidebar-Ui to
c1e1423
Fauxton: Fire authenticated event when user is authenticated
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/f2153c0f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/f2153c0f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/f2153c0f
Branch: refs/heads/Update-Sidebar-Ui
Commit: f2153c0f99050775e3ee1ddb94d9e68848010361
Parents: f0cdb70
Author: Garren Smith <ga...@gmail.com>
Authored: Fri Mar 21 11:31:15 2014 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Fri Mar 21 11:31:15 2014 +0200
----------------------------------------------------------------------
src/fauxton/app/addons/auth/base.js | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/f2153c0f/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 3354f53..c7bbb04 100644
--- a/src/fauxton/app/addons/auth/base.js
+++ b/src/fauxton/app/addons/auth/base.js
@@ -39,8 +39,10 @@ function(app, FauxtonAPI, Auth) {
var deferred = $.Deferred();
if (session.isAdminParty()) {
+ session.trigger("authenticated");
deferred.resolve();
} else if(session.matchesRoles(roles)) {
+ session.trigger("authenticated");
deferred.resolve();
} else {
deferred.reject();