summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogshareelistview.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-07 20:29:51 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-08 09:44:51 +0200
commit278c281cc9c03ad060ac6a91784058066411c7a8 (patch)
treed82e5fda75a9811bc2e280f3933cc36a99ff9e4b /core/js/sharedialogshareelistview.js
parenta3800a6810fca68eff1789dc21488389bf22108a (diff)
downloadnextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.tar.gz
nextcloud-server-278c281cc9c03ad060ac6a91784058066411c7a8.zip
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/sharedialogshareelistview.js')
-rw-r--r--core/js/sharedialogshareelistview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index ca0ac3a5170..088adaff318 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -119,7 +119,7 @@
shareWith = 'circle-' + shareIndex;
}
- if (sharedBy !== oc_current_user) {
+ if (sharedBy !== OC.getCurrentUser().uid) {
var empty = shareWithTitle === '';
if (!empty) {
shareWithTitle += ' (';
@@ -154,8 +154,8 @@
shareId: this.model.get('shares')[shareIndex].id,
modSeed: shareWithAvatar || (shareType !== OC.Share.SHARE_TYPE_USER && shareType !== OC.Share.SHARE_TYPE_CIRCLE && shareType !== OC.Share.SHARE_TYPE_ROOM),
owner: fileOwnerUid,
- isShareWithCurrentUser: (shareType === OC.Share.SHARE_TYPE_USER && shareWith === oc_current_user),
- canUpdateShareSettings: (sharedBy === oc_current_user || fileOwnerUid === oc_current_user),
+ isShareWithCurrentUser: (shareType === OC.Share.SHARE_TYPE_USER && shareWith === OC.getCurrentUser().uid),
+ canUpdateShareSettings: (sharedBy === OC.getCurrentUser().uid || fileOwnerUid === OC.getCurrentUser().uid),
isRemoteShare: shareType === OC.Share.SHARE_TYPE_REMOTE,
isRemoteGroupShare: shareType === OC.Share.SHARE_TYPE_REMOTE_GROUP,
isNoteAvailable: shareType !== OC.Share.SHARE_TYPE_REMOTE && shareType !== OC.Share.SHARE_TYPE_REMOTE_GROUP,