couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [4/4] git commit: Remove Cloudant specific auth
Date Sun, 17 Aug 2014 02:14:10 GMT
Remove Cloudant specific auth


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

Branch: refs/heads/windsor-merge
Commit: f8cd12a8a9e5c7688b480999dcb14d5d22876a24
Parents: ff6da2e
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sat Aug 16 21:13:53 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Sat Aug 16 21:13:53 2014 -0500

----------------------------------------------------------------------
 src/cassim_security.erl | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/f8cd12a8/src/cassim_security.erl
----------------------------------------------------------------------
diff --git a/src/cassim_security.erl b/src/cassim_security.erl
index b4033c5..f000f01 100644
--- a/src/cassim_security.erl
+++ b/src/cassim_security.erl
@@ -110,8 +110,6 @@ validate_security_doc(#doc{body={SecProps}}) ->
         couch_util:get_value(<<"readers">>, SecProps, {[]})),
     ok = validate_names_and_roles(Admins),
     ok = validate_names_and_roles(Members),
-    Users = couch_util:get_value(<<"cloudant">>, SecProps, {[]}),
-    ok = validate_cloudant_roles(Users),
     ok.
 
 
@@ -124,12 +122,6 @@ validate_names_and_roles({Props}) when is_list(Props) ->
     ).
 
 
-validate_cloudant_roles({Props}) when is_list(Props) ->
-    lists:foreach(fun({U, R}) -> validate_roles_list(U, R) end, Props);
-validate_cloudant_roles(_) ->
-    throw("Cloudant field must be a set of name roles list pairs").
-
-
 validate_roles_list(Field, Roles) when is_list(Roles) ->
     case lists:all(fun(X) -> is_binary(X) end, Roles) of
         true -> ok;


Mime
View raw message