Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit bdccabd

Browse files
author
Florian
committed
Fixed access check for blog settings
1 parent 82a4adc commit bdccabd

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## WIP
44

5+
### Fixed
6+
- Fixed access check for settings screen
7+
58
### Removed
69
- Removed manual access check from controller actions
710

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
'icon' => 'blog:icon.svg',
8383
'url' => '@blog/post',
8484
'active' => '@blog/post*',
85-
'access' => 'blog: manage own posts || blog: manage all posts || blog: manage comments || system: manage settings',
85+
'access' => 'blog: manage own posts || blog: manage all posts || blog: manage comments || system: access settings',
8686
'priority' => 110
8787
],
8888
'blog: posts' => [
@@ -104,7 +104,7 @@
104104
'parent' => 'blog',
105105
'url' => '@blog/settings',
106106
'active' => '@blog/settings*',
107-
'access' => 'system: manage settings'
107+
'access' => 'system: access settings'
108108
]
109109

110110
],

src/Controller/BlogController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function commentAction($filter = [], $post = 0, $page = null)
131131
}
132132

133133
/**
134-
* @Access("system: manage settings")
134+
* @Access("system: access settings")
135135
*/
136136
public function settingsAction()
137137
{

0 commit comments

Comments
 (0)