Fix Permissions model url
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/afd66a9c Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/afd66a9c Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/afd66a9c Branch: refs/heads/api-options Commit: afd66a9ceed5af91b2db48f80b3fcf9e7fc04f3e Parents: 61d0617 Author: suelockwood <[email protected]> Authored: Mon Jan 13 15:58:35 2014 -0500 Committer: suelockwood <[email protected]> Committed: Mon Jan 13 15:58:35 2014 -0500 ---------------------------------------------------------------------- src/fauxton/app/addons/permissions/resources.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/afd66a9c/src/fauxton/app/addons/permissions/resources.js ---------------------------------------------------------------------- diff --git a/src/fauxton/app/addons/permissions/resources.js b/src/fauxton/app/addons/permissions/resources.js index 8acaddd..4ddd3ae 100644 --- a/src/fauxton/app/addons/permissions/resources.js +++ b/src/fauxton/app/addons/permissions/resources.js @@ -39,7 +39,7 @@ function (app, FauxtonAPI ) { }, url: function () { - return app.host + this.database.id + '/_security'; + return window.location.origin +"/"+ this.database.safeID() + '/_security'; }, addItem: function (value, type, section) {
