diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 20:29:51 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-08 09:44:51 +0200 |
commit | 278c281cc9c03ad060ac6a91784058066411c7a8 (patch) | |
tree | d82e5fda75a9811bc2e280f3933cc36a99ff9e4b /apps/files | |
parent | a3800a6810fca68eff1789dc21488389bf22108a (diff) | |
download | nextcloud-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 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index d044d365ed6..38705e12ee2 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -154,7 +154,7 @@ owner = $('#owner').val(), ownerDisplayName = $('#ownerDisplayName').val(); if (usedSpacePercent > 98) { - if (owner !== oc_current_user) { + if (owner !== OC.getCurrentUser().uid) { OC.Notification.show(t('files', 'Storage of {owner} is full, files can not be updated or synced anymore!', {owner: ownerDisplayName}), {type: 'error'} ); @@ -167,7 +167,7 @@ return; } if (usedSpacePercent > 90) { - if (owner !== oc_current_user) { + if (owner !== OC.getCurrentUser().uid) { OC.Notification.show(t('files', 'Storage of {owner} is almost full ({usedSpacePercent}%)', { usedSpacePercent: usedSpacePercent, |