Fixed bug that caused the UI to fail loading after creating a user in multi-user mode

This commit is contained in:
Isaac Abadi
2020-12-26 15:35:13 -05:00
parent 75c1c9e9b7
commit f74ce4b865

View File

@@ -536,14 +536,8 @@ function generateUserObject(userid, username, hash, auth_method = 'internal') {
name: username,
uid: userid,
passhash: auth_method === 'internal' ? hash : null,
files: {
audio: [],
video: []
},
playlists: {
audio: [],
video: []
},
files: [],
playlists: [],
subscriptions: [],
created: Date.now(),
role: userid === 'admin' && auth_method === 'internal' ? 'admin' : 'user',