- renew state : removed

- payment state : in acf
This commit is contained in:
asus
2024-03-10 14:51:47 +01:00
parent b457ed119e
commit 9ee35b23bc
5 changed files with 8 additions and 72 deletions

View File

@@ -52,7 +52,7 @@ function renew_page_restrictions_CIPF(){
PLGNTLS_class::debug_infos();
$slug_renew_card = PLGNTLS_class::SLUG_RENEW_CARD;
$slug_page_redirection = PLGNTLS_class::SLUG_PAGE_REDIRECTION;
$acf_prof_can_renew = PLGNTLS_class::ACF_PROF_CAN_RENEW;
// $acf_prof_can_renew = PLGNTLS_class::ACF_PROF_CAN_RENEW;
if (!is_page($slug_renew_card))
return;
@@ -78,8 +78,8 @@ function renew_page_restrictions_CIPF(){
/*
* if prof, check card state
* if cannot renew, redirect
*
*/
if (current_user_can('professeur__professeure')) {
$can_renew = get_field($acf_prof_can_renew['_name'], $acf_id);
if ($can_renew === false) {
@@ -88,6 +88,7 @@ function renew_page_restrictions_CIPF(){
exit;
}
}
*/
/*
* if prof can renew its card, reset some form fields before