Skip to content

Commit

Permalink
Revert "Fix visibility of the method Controller::getAccessRules()"
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- authored Oct 26, 2023
1 parent 6b4d796 commit 14a89ee
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
4 changes: 2 additions & 2 deletions controllers/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConfigController extends AbstractConfigController
/**
* @inheritdoc
*/
protected function getAccessRules()
public function getAccessRules()
{
return [['permissions' => ManageModules::class]];
}
Expand Down Expand Up @@ -57,4 +57,4 @@ public function actionMenu()
]);
}

}
}
4 changes: 2 additions & 2 deletions controllers/ContainerConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class ContainerConfigController extends AbstractConfigController
/**
* @inheritdoc
*/
protected function getAccessRules()
public function getAccessRules()
{
return [
['permission' => [ManageSpaces::class, ManageEntry::class]]
];
}
}
}
6 changes: 3 additions & 3 deletions controllers/FullCalendarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
class FullCalendarController extends Controller
{
/**
* @inheritdoc
* @inheritdocs
*/
protected function getAccessRules()
public function getAccessRules()
{
return [
['login'],
Expand Down Expand Up @@ -67,4 +67,4 @@ public function actionUpdate($id)
return $this->asJson(['success' => false, 'error' => $result]);
}

}
}
5 changes: 3 additions & 2 deletions controllers/GlobalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use humhub\modules\calendar\models\CalendarEntryDummy;
use humhub\modules\calendar\models\fullcalendar\FullCalendar;
use humhub\modules\calendar\models\SnippetModuleSettings;
use humhub\modules\calendar\permissions\CreateEntry;
use humhub\modules\calendar\widgets\FilterType;
use humhub\modules\content\components\ContentContainerModuleManager;
use humhub\modules\content\models\ContentContainer;
Expand Down Expand Up @@ -43,9 +44,9 @@ class GlobalController extends Controller
public $calendarService;

/**
* @inheritdoc
* @return array
*/
protected function getAccessRules()
public function getAccessRules()
{
return [
['login' => ['enable', 'select']]
Expand Down
6 changes: 3 additions & 3 deletions controllers/IcalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class IcalController extends Controller
const EXPORT_MIME = 'text/calendar';

/**
* @inheritdoc
* @return array
*/
protected function getAccessRules()
public function getAccessRules()
{
return [
[ControllerAccess::RULE_LOGGED_IN_ONLY]
Expand Down Expand Up @@ -106,4 +106,4 @@ public function getEvent($id)

return $event;
}
}
}
6 changes: 3 additions & 3 deletions controllers/ReminderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
class ReminderController extends ContentContainerController
{
/**
* @inheritdoc
* @return array
*/
protected function getAccessRules()
public function getAccessRules()
{
return [
[ControllerAccess::RULE_LOGGED_IN_ONLY]
Expand Down Expand Up @@ -62,4 +62,4 @@ public function actionSet($id)

return $this->renderAjax('userLevelReminder', ['reminderSettings' => $reminderSettings]);
}
}
}
4 changes: 0 additions & 4 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Changelog
=========

1.5.5 - (Unreleased)
-------------------------
- Fix #430: Fix visibility of the method `Controller::getAccessRules()`

1.5.4 - (October 5, 2023)
-------------------------
- Enh #424: Tests for `next` version
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": "Calendar",
"description": "Calendar for spaces or user profiles.",
"keywords": ["calendar"],
"version": "1.5.5",
"version": "1.5.4",
"humhub": {
"minVersion": "1.14"
},
Expand Down

0 comments on commit 14a89ee

Please sign in to comment.