Skip to content

Commit

Permalink
Added permission to Dashboard widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
gergo85 committed May 10, 2019
1 parent 01ab958 commit 7565ccd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ public function registerReportWidgets()
{
return [
'Indikator\BlogStat\ReportWidgets\Posts' => [
'label' => 'indikator.blogstat::lang.widget.posts',
'context' => 'dashboard'
'label' => 'indikator.blogstat::lang.widget.posts',
'context' => 'dashboard',
'permissions' => ['indikator.blogstat.statistics']
],
'Indikator\BlogStat\ReportWidgets\Categories' => [
'label' => 'indikator.blogstat::lang.widget.categories',
'context' => 'dashboard'
'label' => 'indikator.blogstat::lang.widget.categories',
'context' => 'dashboard',
'permissions' => ['indikator.blogstat.statistics']
]
];
}
Expand Down
1 change: 1 addition & 0 deletions updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
1.0.3: Redesigned the report widgets.
1.0.4: !!! Updated for October 420+.
1.0.5: Minor visual and code improvements.
1.0.6: Added permission to Dashboard widgets.

0 comments on commit 7565ccd

Please sign in to comment.