From 278c281cc9c03ad060ac6a91784058066411c7a8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 7 May 2019 20:29:51 +0200 Subject: Deprecate oc_current_user, fix usage and move currentUser to the bundle Signed-off-by: Christoph Wurst --- apps/files/js/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/js/files.js') 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, -- cgit v1.2.3