diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-05-08 15:57:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-08 15:57:09 +0200 |
commit | 10d5af18b3b1d632ec6446782f0f9121d3352dc4 (patch) | |
tree | edcdfb9f896ed3e277231a3a14ceb4efcf194e2d /apps/files/js/files.js | |
parent | a2ad5d021f0d31babe8271748c77561a2c1addb7 (diff) | |
parent | 278c281cc9c03ad060ac6a91784058066411c7a8 (diff) | |
download | nextcloud-server-10d5af18b3b1d632ec6446782f0f9121d3352dc4.tar.gz nextcloud-server-10d5af18b3b1d632ec6446782f0f9121d3352dc4.zip |
Merge pull request #15427 from nextcloud/refactor/oc-current-user-deprecate-bundle
Deprecate oc_current_user, fix usage and move currentUser to the bundle
Diffstat (limited to 'apps/files/js/files.js')
-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, |