Skip to content

Commit

Permalink
Fix string offset on strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Feb 1, 2025
1 parent 5447b2d commit b70b18d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions VATGER/Auth/Api/Controller/UserModeratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public function actionPost(ParameterBag $params): ApiResult|Error
$permissionEntries = [];

foreach ($input as $key => $value) {
if (!is_numeric($key)) {
continue;
}

$pgid = $value['permission_group_id'];
$pid = $value['permission_id'];
$pval = $value['permission_value'] ?? "allow";
Expand Down
4 changes: 2 additions & 2 deletions VATGER/Auth/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"legacy_addon_id": "",
"title": "VATSIM Germany",
"description": "The VATSIM Germany plugin integrates with VATGER's OAuth2 implementation to allow SSO login in Xenforo.",
"version_id": 132,
"version_string": "1.3.2",
"version_id": 133,
"version_string": "1.3.3",
"dev": "VATSIM Germany",
"dev_url": "https://vatsim-germany.org",
"faq_url": "",
Expand Down

0 comments on commit b70b18d

Please sign in to comment.