Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gestione purging inviti in relazione many-to-many tra PA e utenti #927

Open
pdavide opened this issue Mar 15, 2021 · 1 comment
Open

Gestione purging inviti in relazione many-to-many tra PA e utenti #927

pdavide opened this issue Mar 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pdavide
Copy link
Member

pdavide commented Mar 15, 2021

Il codice relativo alla cancellazione delle utenze che non rispondono all'invito, non tiene conto della relazione many-to-many tra amministrazioni e utenti.

$pendingInvitations = User::where('status', UserStatus::INVITED)->get();
$oldPendingInvitations = $pendingInvitations->mapToGroups(function ($invitedUser) {
if ($invitedUser->created_at->diffInDays(Carbon::now()) > (int) config('auth.verification.purge')) {

<p class="mt-3 font-weight-semibold">
{{ __("Se non accetta l'invito, l'utente sarà rimosso fra :purgeDays.",[
'purgeDays' => trans_choice(
"{1} :count giorno|[2,*] :count giorni",
(int) config('auth.verification.purge') - $user->created_at->diffInDays(now())
)
]) }}
</p>

@pdavide pdavide added the bug Something isn't working label Mar 15, 2021
@axciccu
Copy link
Contributor

axciccu commented Mar 17, 2021

Bisognerebbe anche cambiare la tabella di associazione tra utente e pubblica amministrazione aggiungendo la data dell'invito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants