couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [5/5] fauxton commit: updated refs/heads/master to d138e01
Date Fri, 28 Aug 2015 16:59:30 GMT
fix permission urls

PR: #504
PR-URL: https://github.com/apache/couchdb-fauxton/pull/504
Reviewed-By: Benjamin Keen <ben.keen@gmail.com>


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

Branch: refs/heads/master
Commit: 7c7c94d2797de0dfac64c3b07a41f72a39d9f774
Parents: 2ed6be4
Author: Robert Kowalski <robertkowalski@apache.org>
Authored: Fri Aug 28 15:01:27 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Fri Aug 28 18:59:10 2015 +0200

----------------------------------------------------------------------
 app/addons/databases/base.js | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/7c7c94d2/app/addons/databases/base.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/base.js b/app/addons/databases/base.js
index 56a76b0..1a95285 100644
--- a/app/addons/databases/base.js
+++ b/app/addons/databases/base.js
@@ -65,14 +65,16 @@ function (app, FauxtonAPI, Databases) {
   });
 
   FauxtonAPI.registerUrls('permissions', {
-    server: function (id) {
-      return app.host + '/' + id + '/permissions';
+    server: function (db) {
+      return app.host + '/' + db + '/_security';
     },
-    app: function (id) {
-      return '/database/' + id + '/permissions';
+
+    app: function (db) {
+      return '/database/' + db + '/permissions';
     },
-    apiurl: function (id) {
-      return window.location.origin + '/_api/v2/db/' + id + '/_security' ;
+
+    apiurl: function (db) {
+      return window.location.origin + '/' + db + '/_security' ;
     }
   });
 


Mime
View raw message