- most prof states shoud be ok

- redirection partner page creation
- user ids on checks states
- reset cgv
- restrict prof profil page
This commit is contained in:
asus
2024-03-20 00:26:39 +01:00
parent 61063cabd9
commit 0127d8db4c
6 changed files with 96 additions and 244 deletions

View File

@@ -17,8 +17,23 @@ if (!defined('ABSPATH')) {
function hide_admin_bar_CIPF() {
PLGNTLS_class::debug_infos();
$role_admin = PLGNTLS_class::ROLE_ADMIN;
$role_fipf = PLGNTLS_class::ROLE_FIPF;
if (!current_user_can($role_admin) && !is_admin()) {
/*
* is admin page
*
*/
if (is_admin()) {
return;
}
/*
* if
*
*/
if (!current_user_can($role_admin)) {
show_admin_bar(false);
}
}