Skip to content

Commit b939e9f

Browse files
committed
modify working_dir for no_multi_user
1 parent 1327dd3 commit b939e9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function showResponse(responseText, statusText, xhr, $form) {
181181
182182
function clickRoot() {
183183
$('.folder-item').removeClass('fa-folder-open').addClass('fa-folder');
184-
$("#working_dir").val("{{Auth::user()->user_field}}");
184+
$("#working_dir").val("{{ (config('lfm.allow_multi_user')) ? Auth::user()->user_field : '/'}}");
185185
loadImages();
186186
}
187187
@@ -197,7 +197,7 @@ function clickFolder(x, y) {
197197
$('#' + x + ' > i').addClass('fa-folder');
198198
}
199199
}
200-
$("#working_dir").val("{{Auth::user()->user_field}}" + '/' + $('#' + x).data('id'));
200+
$("#working_dir").val("{{ (config('lfm.allow_multi_user')) ? Auth::user()->user_field.'/' : '' }}" + $('#' + x).data('id'));
201201
loadImages();
202202
}
203203

0 commit comments

Comments
 (0)