summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2018-08-17 20:09:11 +0200
committerMichael Weimann <mail@michael-weimann.eu>2018-08-17 20:09:11 +0200
commit887737f7067a6e9872fb0843ee5bac8a540fd684 (patch)
tree30c6e266c7c798b9a46927b2643c383acf1bb61e /apps/files/js
parentf18fc851c00c5cb9cad5b3217b49359f7f2165fc (diff)
downloadnextcloud-server-887737f7067a6e9872fb0843ee5bac8a540fd684.tar.gz
nextcloud-server-887737f7067a6e9872fb0843ee5bac8a540fd684.zip
Stores the sorting only if there is an user
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
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