[Duplicate] Allow copy across spaces

Fixes #1007
This commit is contained in:
Victor Woeltjen 2016-06-10 10:06:05 -07:00
parent 0263237b2c
commit 5152e64895
2 changed files with 17 additions and 22 deletions

View File

@ -24,10 +24,7 @@ define(
[], [],
function () { function () {
var DISALLOWED_ACTIONS = [ var DISALLOWED_ACTIONS = ["move"];
"move",
"copy"
];
/** /**
* This policy prevents performing move/copy/link actions across * This policy prevents performing move/copy/link actions across

View File

@ -70,10 +70,9 @@ define(
policy = new CrossSpacePolicy(); policy = new CrossSpacePolicy();
}); });
['move', 'copy'].forEach(function (key) { describe("for move actions", function () {
describe("for " + key + " actions", function () {
beforeEach(function () { beforeEach(function () {
testActionMetadata.key = key; testActionMetadata.key = 'move';
}); });
it("allows same-space changes", function () { it("allows same-space changes", function () {
@ -92,7 +91,6 @@ define(
})).toBe(true); })).toBe(true);
}); });
}); });
});
describe("for other actions", function () { describe("for other actions", function () {
beforeEach(function () { beforeEach(function () {