Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E250C10727 for ; Tue, 1 Apr 2014 09:16:12 +0000 (UTC) Received: (qmail 73718 invoked by uid 500); 1 Apr 2014 09:15:24 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 73278 invoked by uid 500); 1 Apr 2014 09:15:07 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 71856 invoked by uid 99); 1 Apr 2014 09:14:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 09:14:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 40F7891B3A9; Tue, 1 Apr 2014 09:14:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kxepal@apache.org To: commits@couchdb.apache.org Date: Tue, 01 Apr 2014 09:14:54 -0000 Message-Id: <085f09634ead46e3b1776ad35c5ea710@git.apache.org> In-Reply-To: <9743a3d508544bf2a0aaca36a1819b74@git.apache.org> References: <9743a3d508544bf2a0aaca36a1819b74@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [38/50] [abbrv] fauxton commit: updated refs/heads/import-master to b32c617 Fauxton: Fire authenticated event when user is authenticated Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/4cca7302 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/4cca7302 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/4cca7302 Branch: refs/heads/import-master Commit: 4cca73027d156954344423f390f24fe1c1ac6c46 Parents: 2478107 Author: Garren Smith Authored: Fri Mar 21 11:31:15 2014 +0200 Committer: Garren Smith Committed: Fri Mar 21 11:31:15 2014 +0200 ---------------------------------------------------------------------- app/addons/auth/base.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4cca7302/app/addons/auth/base.js ---------------------------------------------------------------------- diff --git a/app/addons/auth/base.js b/app/addons/auth/base.js index 3354f53..c7bbb04 100644 --- a/app/addons/auth/base.js +++ b/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();