Skip to content

Commit

Permalink
1.17.1 Checking for user or setting group permissions on workshop sid…
Browse files Browse the repository at this point in the history
…ebar group
  • Loading branch information
nWidart committed Sep 8, 2016
1 parent ba04b7e commit eac6b4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sidebar/SidebarExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function extendWith(Menu $menu)
$this->auth->hasAccess('workshop.themes.index')
);
});

$group->authorize(
$this->auth->hasAccess('workshop.*')
$this->auth->hasAccess('workshop.*') or $this->auth->hasAccess('user.*') or $this->auth->hasAccess('setting.*')
);
});

Expand Down
3 changes: 3 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
url: https://github.com/AsgardCms/Workshop
versions:
"1.17.1":
changed:
- Checking for user or setting group permissions on workshop sidebar group
"1.17.0":
changed:
- Only list workshop in sidebar when accessible
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Module used to handle the create of new modules.",
"keywords": [
],
"version": "1.17.0",
"version": "1.17.1",
"active": 1,
"order": 1,
"providers": [
Expand Down

0 comments on commit eac6b4b

Please sign in to comment.