Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 28, 2024
1 parent 4456124 commit ce14023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/GaletteOAuth2/Authorization/UserHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public static function getUserData(Container $container, int $id, array $options
'.' .
self::stripAccents($nameFPart);

//FIXME: is that really useful? From a Galette PoV; this does not means much.
$etat_adhesion = ($member->isActive() && $member->isUp2Date()) || $member->isAdmin();

if (!$member->isActive()) {
Expand Down Expand Up @@ -168,6 +169,8 @@ public static function getUserData(Container $container, int $id, array $options
$groups[] = 'uptodate';
}

//FIXME: add groups from groups table? Or another way? info_adh does not seems a good way for everyone
//FIXME: For example, data is replaced on duplication, thus oauth groups configuration would be lost
//Add externals groups (free text in info_adh)
//Example #GROUPS:compta;accueil#
if (preg_match('/#GROUPS:([^#]*([^#]*))#/mui', $member->others_infos_admin, $matches, PREG_OFFSET_CAPTURE)) {
Expand Down

0 comments on commit ce14023

Please sign in to comment.