Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume WANG
gdd-sigma-poc
Commits
c52bb468
Commit
c52bb468
authored
7 years ago
by
Wilson JALLET
Browse files
Options
Downloads
Patches
Plain Diff
Added async back to some functions
parent
9d13e505
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/graphql/connectors/authentifiers.js
+4
-5
4 additions, 5 deletions
src/graphql/connectors/authentifiers.js
with
4 additions
and
5 deletions
src/graphql/connectors/authentifiers.js
+
4
−
5
View file @
c52bb468
...
...
@@ -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
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment