This commit is contained in:
tdgmdev 2023-03-08 20:15:50 -05:00
parent 9d9e80a854
commit 404bd50cd3

View file

@ -204,7 +204,9 @@ backend.postDelete = async ({id, user, admin}) => {
let userRoles = async ({user}) => {
var rolesLocal = await db.all('SELECT roles from bio WHERE username = ?', [
user
] ) || [{}];
] );
if (rolesLocal.length == 0) rolesLocal = [{}];
let rolesLocalList = rolesLocal[0].roles;