]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adds security section to the admin page
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 14 Nov 2016 13:02:03 +0000 (14:02 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 2 Apr 2017 19:13:09 +0000 (21:13 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Settings/Manager.php
tests/lib/Settings/ManagerTest.php

index 94df00551d443f47cb028fb16e25430cdaa6a0f1..2ae1e0682b7e857528ce9c4967f938a631baee37 100644 (file)
@@ -273,6 +273,7 @@ class Manager implements IManager {
                $sections = [
                        0 => [new Section('server', $this->l->t('Server settings'), 0, $this->url->imagePath('settings', 'admin.svg'))],
                        5 => [new Section('sharing', $this->l->t('Sharing'), 0, $this->url->imagePath('core', 'actions/share.svg'))],
+                       10 => [new Section('security', $this->l->t('Security'), 0)],
                        45 => [new Section('encryption', $this->l->t('Encryption'), 0, $this->url->imagePath('core', 'actions/password.svg'))],
                        98 => [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))],
                        99 => [new Section('tips-tricks', $this->l->t('Tips & tricks'), 0, $this->url->imagePath('settings', 'help.svg'))],
index 2122c8b37502cfc0faacda39827fadedd28973ce..e6acafe9b885bb923a4fc78639512df93e2c2acc 100644 (file)
@@ -159,6 +159,7 @@ class ManagerTest extends TestCase {
                $this->assertEquals([
                        0 => [new Section('server', 'Server settings', 0, '1')],
                        5 => [new Section('sharing', 'Sharing', 0, '2')],
+                       10 => [new Section('security', 'Security', 0)],
                        45 => [new Section('encryption', 'Encryption', 0, '3')],
                        90 => [\OC::$server->query(\OCA\WorkflowEngine\Settings\Section::class)],
                        98 => [new Section('additional', 'Additional settings', 0, '4')],
@@ -190,6 +191,7 @@ class ManagerTest extends TestCase {
                $this->assertEquals([
                        0 => [new Section('server', 'Server settings', 0, '1')],
                        5 => [new Section('sharing', 'Sharing', 0, '2')],
+                       10 => [new Section('security', 'Security', 0)],
                        45 => [new Section('encryption', 'Encryption', 0, '3')],
                        98 => [new Section('additional', 'Additional settings', 0, '4')],
                        99 => [new Section('tips-tricks', 'Tips & tricks', 0, '5')],