Add admin ctx on open ddoc in group_info 85/head
authorEric Avdey <eiri@eiri.ca>
Tue, 24 Jan 2017 17:25:41 +0000 (13:25 -0400)
committerEric Avdey <eiri@eiri.ca>
Tue, 24 Jan 2017 17:25:53 +0000 (13:25 -0400)
src/fabric_group_info.erl

index f6ed9cb..8383a7e 100644 (file)
@@ -19,7 +19,7 @@
 -include_lib("couch/include/couch_db.hrl").
 
 go(DbName, GroupId) when is_binary(GroupId) ->
-    {ok, DDoc} = fabric:open_doc(DbName, GroupId, []),
+    {ok, DDoc} = fabric:open_doc(DbName, GroupId, [?ADMIN_CTX]),
     go(DbName, DDoc);
 
 go(DbName, #doc{id=DDocId}) ->