Skip to content

Commit

Permalink
Fix visibility of the method Controller::getAccessRules()
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Oct 25, 2023
1 parent ecbadd4 commit cb0d546
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function init()
/**
* @inheritdoc
*/
public function getAccessRules()
protected function getAccessRules()
{
if ($this->getContainerFromRequest() instanceof Space) {
return [
Expand Down
2 changes: 1 addition & 1 deletion controllers/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ViewController extends AbstractCustomContainerController
/**
* @inhritdoc
*/
public function getAccessRules()
protected function getAccessRules()
{
return [
['strict']
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.9.5 (Unreleased)
------------------------
- Enh #303: Fix visibility of the method `Controller::getAccessRules()`

1.9.4 (October 24, 2023)
------------------------
- Enh #287: Add Support `Custom Pages Without adding to navigation` for Space
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Custom Pages",
"description": "Create custom pages and widgets and share them with your users. Take advantage of a wide range of editing options, including HTML and Markdown.",
"keywords": ["pages", "custom", "iframe", "markdown", "link", "navigation", "spaces"],
"version": "1.9.4",
"version": "1.9.5",
"homepage": "https://github.com/humhub/custom-pages",
"humhub": {
"minVersion": "1.14"
Expand Down

0 comments on commit cb0d546

Please sign in to comment.