From 887737f7067a6e9872fb0843ee5bac8a540fd684 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Fri, 17 Aug 2018 20:09:11 +0200 Subject: Stores the sorting only if there is an user Signed-off-by: Michael Weimann --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 8e7c60551a1..8fb8a021811 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1738,7 +1738,7 @@ } } - if (persist) { + if (persist && OC.getCurrentUser().uid) { $.post(OC.generateUrl('/apps/files/api/v1/sorting'), { mode: sort, direction: direction -- cgit v1.2.3