summaryrefslogtreecommitdiffstats
path: root/core/js/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-10 16:00:55 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-10 16:00:55 +0100
commit1301ec93519a39fa88c2eca1e679b20dbb560975 (patch)
treea4a1ba160dc4e8d813602bcef60bc5f7f5ff3ae9 /core/js/tests
parent63b99b614c53c903148f4a7ff0c02ca625aa9890 (diff)
downloadnextcloud-server-1301ec93519a39fa88c2eca1e679b20dbb560975.tar.gz
nextcloud-server-1301ec93519a39fa88c2eca1e679b20dbb560975.zip
Only show link shares for the current user
Currently we have no way to display multiple links in the UI. So just display the link share for the current user. Fixes #22275
Diffstat (limited to 'core/js/tests')
-rw-r--r--core/js/tests/specs/shareitemmodelSpec.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/js/tests/specs/shareitemmodelSpec.js b/core/js/tests/specs/shareitemmodelSpec.js
index b2480a8beaa..8c9560d2646 100644
--- a/core/js/tests/specs/shareitemmodelSpec.js
+++ b/core/js/tests/specs/shareitemmodelSpec.js
@@ -164,6 +164,8 @@ describe('OC.Share.ShareItemModel', function() {
}
]));
+ OC.currentUser = 'root';
+
model.fetch();
var shares = model.get('shares');
@@ -253,7 +255,7 @@ describe('OC.Share.ShareItemModel', function() {
uid_owner: 'root'
}]
));
-
+ OC.currentUser = 'root';
model.fetch();
var shares = model.get('shares');
@@ -443,7 +445,7 @@ describe('OC.Share.ShareItemModel', function() {
token: 'tehtoken',
uid_owner: 'root'
}]));
-
+ OC.currentUser = 'root';
model.fetch();
var res = model.sendEmailPrivateLink('foo@bar.com');
@@ -493,7 +495,7 @@ describe('OC.Share.ShareItemModel', function() {
token: 'tehtoken',
uid_owner: 'root'
}]));
-
+ OC.currentUser = 'root';
model.fetch();
var res = model.sendEmailPrivateLink('foo@bar.com');