changed all role occurences by a const

This commit is contained in:
asus
2024-03-11 00:02:55 +01:00
parent 4f4bfd1c88
commit 046b31579c
11 changed files with 35 additions and 3139 deletions

View File

@@ -16,7 +16,9 @@ if (!defined('ABSPATH')) {
*/
function hide_admin_bar_CIPF() {
PLGNTLS_class::debug_infos();
if (!current_user_can('administrator') && !is_admin()) {
$role_admin = PLGNTLS_class::ROLE_ADMIN;
if (!current_user_can($role_admin) && !is_admin()) {
show_admin_bar(false);
}
}