diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 198c203be1..516ab0a8d8 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -841,7 +841,7 @@ if (count($_POST) > 0 && $_POST["persistform"] != "1") { echo ""; } - if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/api/app_config.php')) { + if (permission_exists('api_key')) { echo "