Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 8688c35

Browse files
committed
Sort groups in descending order
1 parent 0385a06 commit 8688c35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Api/Controller/Groups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function actionGet(ParameterBag $params)
2121
{
2222
$this->assertSuperUserKey();
2323

24-
$groups = $this->finder('XF:UserGroup')->order('display_style_priority')->fetch();
24+
$groups = $this->finder('XF:UserGroup')->order('display_style_priority', 'DESC')->fetch();
2525

2626
return $this->apiSuccess([
2727
'groups' => $groups

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": "Yogstation Permissions",
44
"description": "",
5-
"version_id": 20201130,
6-
"version_string": "20201130",
5+
"version_id": 20201201,
6+
"version_string": "20201201",
77
"dev": "",
88
"dev_url": "",
99
"faq_url": "",

0 commit comments

Comments
 (0)