fix: missing personal settings section

fix #68
pull/75/head
sualko 2020-09-02 10:07:20 +02:00
parent 74afa106e0
commit 9e9784564e
2 changed files with 3 additions and 2 deletions

View File

@ -38,5 +38,6 @@ Developer wanted! If you have time it would be awesome if you could help to enha
</dependencies> </dependencies>
<settings> <settings>
<admin>OCA\BigBlueButton\Settings\Admin</admin> <admin>OCA\BigBlueButton\Settings\Admin</admin>
<personal-section>OCA\BigBlueButton\Settings\Section</personal-section>
</settings> </settings>
</info> </info>

View File

@ -3,6 +3,7 @@
namespace OCA\BigBlueButton\AppInfo; namespace OCA\BigBlueButton\AppInfo;
use \OCP\IConfig; use \OCP\IConfig;
use \OCP\Settings\IManager as ISettingsManager;
use \OCP\AppFramework\App; use \OCP\AppFramework\App;
use \OCA\BigBlueButton\Middleware\JoinMiddleware; use \OCA\BigBlueButton\Middleware\JoinMiddleware;
@ -30,8 +31,7 @@ class Application extends App {
private function registerAsPersonalSetting() { private function registerAsPersonalSetting() {
$settingsManager = $this->getContainer()->getServer()->getSettingsManager(); $settingsManager = $this->getContainer()->getServer()->getSettingsManager();
$settingsManager->registerSection('personal', \OCA\BigBlueButton\Settings\Section::class); $settingsManager->registerSetting(ISettingsManager::KEY_PERSONAL_SETTINGS, \OCA\BigBlueButton\Settings\Personal::class);
$settingsManager->registerSetting('personal', \OCA\BigBlueButton\Settings\Personal::class);
} }
private function registerAsNavigationEntry() { private function registerAsNavigationEntry() {