Stores the sorting only if there is an user

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann 2018-08-17 20:09:11 +02:00
parent f18fc851c0
commit 887737f706
No known key found for this signature in database
GPG key ID: 34F0524D4DA694A1

View file

@ -1738,7 +1738,7 @@
}
}
if (persist) {
if (persist && OC.getCurrentUser().uid) {
$.post(OC.generateUrl('/apps/files/api/v1/sorting'), {
mode: sort,
direction: direction