couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [02/11] chttpd commit: updated refs/heads/master to 238b8c4
Date Wed, 12 Aug 2015 15:54:26 GMT
Use '?ADMIN_USER' for admin party


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

Branch: refs/heads/master
Commit: f42f96c897a3ad22f40e2c5bf35c737c4fd3fa92
Parents: 90f1aa7
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Aug 5 14:31:31 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Aug 11 08:44:37 2015 -0700

----------------------------------------------------------------------
 src/chttpd_auth.erl | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/f42f96c8/src/chttpd_auth.erl
----------------------------------------------------------------------
diff --git a/src/chttpd_auth.erl b/src/chttpd_auth.erl
index 7a45399..6683892 100644
--- a/src/chttpd_auth.erl
+++ b/src/chttpd_auth.erl
@@ -50,8 +50,7 @@ party_mode_handler(Req) ->
     "false" ->
         case config:get("admins") of
         [] ->
-            Ctx = #user_ctx{roles=[<<"_reader">>, <<"_writer">>,
<<"_admin">>]},
-            Req#httpd{user_ctx = Ctx};
+            Req#httpd{user_ctx = ?ADMIN_USER};
         _ ->
             Req#httpd{user_ctx=#user_ctx{}}
         end


Mime
View raw message