Skip to content
Snippets Groups Projects
Commit c52bb468 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Added async back to some functions

parent 9d13e505
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,7 @@ import * as connectors from './connectors.js'; ...@@ -8,8 +8,7 @@ import * as connectors from './connectors.js';
import * as selectors from './selectors'; import * as selectors from './selectors';
import * as list_selectors from './list_selectors'; import * as list_selectors from './list_selectors';
import { UtilisateurAnonyme, UtilisateurConnecte, import { UtilisateurAnonyme, UtilisateurConnecte,
AdministrateurConnecte, SuperAdministrateurConnecte AdministrateurConnecte, SuperAdministrateurConnecte } from '../../ldap/ldap_data';
} from '../../ldap/ldap_data';
function user_object(user, ldap_access){ function user_object(user, ldap_access){
...@@ -60,7 +59,7 @@ export async function member(user, groupUID){ ...@@ -60,7 +59,7 @@ export async function member(user, groupUID){
let test = await knex.with('group_list', group_list).select().from('group_list').where('uid', groupUID); let test = await knex.with('group_list', group_list).select().from('group_list').where('uid', groupUID);
if(test[0]) if(test[0])
return new user_object(user, new UtilisateurConnecte(user)); return new user_object(user, new UtilisateurConnecte(user));
return admin(user, groupUID); return await admin(user, groupUID);
} }
/** /**
...@@ -69,8 +68,8 @@ export async function member(user, groupUID){ ...@@ -69,8 +68,8 @@ export async function member(user, groupUID){
* @return {Promise(Boolean)} L'utilisateur possède-t-il les droits indiqués ici ? * @return {Promise(Boolean)} L'utilisateur possède-t-il les droits indiqués ici ?
* @rights user * @rights user
*/ */
export function speaker(user, groupUID){ export async function speaker(user, groupUID){
return admin(user, groupUID); return await admin(user, groupUID);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment