Skip to content

Commit 5447b2d

Browse files
committed
Update checkAllowedToUse for functional accounts
1 parent 02f37af commit 5447b2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

VATGER/Auth/Pub/Controller/FunctionalAccountController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function actionLeave()
9898

9999
private function _checkAllowedToUse(User $account): bool
100100
{
101-
if (array_find_key(self::$DISALLOWED_FUNC_ACC, fn(string $accName) => $accName === $account->username) ||
101+
if (array_find(self::$DISALLOWED_FUNC_ACC, fn(string $accName) => $accName === $account->username) !== null ||
102102
(!\XF::visitor()->is_moderator && !\XF::visitor()->is_admin && !\XF::visitor()->is_super_admin)
103103
) {
104104
return false;

VATGER/Auth/addon.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"legacy_addon_id": "",
33
"title": "VATSIM Germany",
44
"description": "The VATSIM Germany plugin integrates with VATGER's OAuth2 implementation to allow SSO login in Xenforo.",
5-
"version_id": 131,
6-
"version_string": "1.3.1",
5+
"version_id": 132,
6+
"version_string": "1.3.2",
77
"dev": "VATSIM Germany",
88
"dev_url": "https://vatsim-germany.org",
99
"faq_url": "",

0 commit comments

Comments
 (0)