mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
Empty settings for non-admins
This commit is contained in:
parent
470730853d
commit
d203b8a9d7
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class DataController extends Controller
|
|||
|
||||
return response()->json([
|
||||
'artists' => Artist::orderBy('name')->with('albums', with('albums.songs'))->get(),
|
||||
'settings' => Setting::lists('value', 'key')->all(),
|
||||
'settings' => auth()->user()->is_admin ? Setting::lists('value', 'key')->all() : [],
|
||||
'playlists' => $playlists,
|
||||
'interactions' => Interaction::byCurrentUser()->get(),
|
||||
'users' => auth()->user()->is_admin ? User::all() : [],
|
||||
|
|
Loading…
Reference in a new issue