From c52bb46861951407e06083596b7aef641c14f961 Mon Sep 17 00:00:00 2001 From: ManifoldFR <wilson.jallet@gmail.com> Date: Tue, 20 Mar 2018 23:16:42 +0100 Subject: [PATCH] Added async back to some functions --- src/graphql/connectors/authentifiers.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/graphql/connectors/authentifiers.js b/src/graphql/connectors/authentifiers.js index e7ace7a..3896f85 100644 --- a/src/graphql/connectors/authentifiers.js +++ b/src/graphql/connectors/authentifiers.js @@ -8,8 +8,7 @@ import * as connectors from './connectors.js'; import * as selectors from './selectors'; import * as list_selectors from './list_selectors'; import { UtilisateurAnonyme, UtilisateurConnecte, - AdministrateurConnecte, SuperAdministrateurConnecte -} from '../../ldap/ldap_data'; + AdministrateurConnecte, SuperAdministrateurConnecte } from '../../ldap/ldap_data'; function user_object(user, ldap_access){ @@ -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); if(test[0]) 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){ * @return {Promise(Boolean)} L'utilisateur possède-t-il les droits indiqués ici ? * @rights user */ -export function speaker(user, groupUID){ - return admin(user, groupUID); +export async function speaker(user, groupUID){ + return await admin(user, groupUID); } /** -- GitLab