wip i broke everyhting :p

This commit is contained in:
asus
2024-03-14 13:10:05 +01:00
parent 76f2e8ba00
commit e14acfb739
7 changed files with 18 additions and 121 deletions

View File

@@ -18,14 +18,6 @@ function hide_admin_bar_CIPF() {
PLGNTLS_class::debug_infos();
$role_admin = PLGNTLS_class::ROLE_ADMIN;
$slug = get_post_field( 'post_name', get_post() );
error_log("slug");
error_log($slug);
// error_log("request");
// error_log(json_encode($_REQUEST));
// error_log("server");
// error_log(json_encode($_SERVER));
if (!current_user_can($role_admin) && !is_admin()) {
show_admin_bar(false);
}