Skip to content

Commit

Permalink
Flarum 1.0 ready
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed May 17, 2021
1 parent dcdf090 commit 3d97f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@
}
],
"require": {
"flarum/core": "^0.1.0-beta.16"
"flarum/core": "^1.0.0"
},
"authors": [
{
"name": "Sajjad Hashemian",
"email": "[email protected]"
},
{
"name": "David Sevilla Martín",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/LoadForumLinksRelationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __invoke(ShowForumController $controller, &$data, ServerRequestI

// So that admins don't have to see guest only items but can manage them in admin panel,
// we only serialize all links if we're visiting the admin panel
if ($actor->isAdmin() && $request->getUri()->getPath() === "/$adminPath") {
if ($actor->isAdmin() && $request->getServerParams()['REQUEST_URI'] === "/$adminPath") {
return $data['links'] = Link::all();
}

Expand Down

0 comments on commit 3d97f2e

Please sign in to comment.