sdgsdg
This commit is contained in:
parent
9d9e80a854
commit
404bd50cd3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue