$user = UserService::getCurrentUser();if (isset($user) && UserService::isCurrentUserAdmin()) { return 'Welcome administrator.';}return 'You are not an administrator.';
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-05-30 UTC。"],[[["Applications can check if the currently signed-in user has administrator privileges."],["Administrators have access to the application's Administration Console for management tasks."],["The `UserService::isCurrentUserAdmin()` function determines if the current user is an administrator, returning `True` if they are."],["The `login: admin` configuration element can restrict access to parts of an application, limiting it to administrators."]]],[]]