- 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user