Skip to content

Commit

Permalink
fix/charter-page-inscription : retour review - utilise les bonnes con…
Browse files Browse the repository at this point in the history
…stantes pour le User
  • Loading branch information
Raphael committed Jul 19, 2024
1 parent 728e863 commit 0a18ea2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions sources/Afup/Droits.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/
class Droits
{
const AFUP_DROITS_NIVEAU_MEMBRE = AFUP_DROITS_NIVEAU_MEMBRE;
const AFUP_DROITS_ETAT_ACTIF = AFUP_DROITS_ETAT_ACTIF;
/**
* Liste structurée avec toutes les pages référencées dans l'application
*
Expand Down
7 changes: 3 additions & 4 deletions sources/AppBundle/Association/Factory/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace AppBundle\Association\Factory;

use Afup\Site\Droits;
use AppBundle\Association\Model\User;

class UserFactory
Expand All @@ -15,9 +14,9 @@ public function createForRegister(): User
$user
->setCivility(User::CIVILITE_M)
->setCountry('FR')
->setLevel(Droits::AFUP_DROITS_NIVEAU_MEMBRE)
->setStatus(Droits::AFUP_DROITS_ETAT_ACTIF)
->setDirectoryLevel(Droits::AFUP_DROITS_NIVEAU_MEMBRE)
->setLevel(User::LEVEL_MEMBER)
->setStatus(User::STATUS_ACTIVE)
->setDirectoryLevel(User::LEVEL_MEMBER)
;
}
}

0 comments on commit 0a18ea2

Please sign in to comment.