From 8ce33a2e4091c4da25996ee79228d073d203a5f5 Mon Sep 17 00:00:00 2001 From: AntonyAntonio Date: Mon, 16 Jan 2017 17:11:45 -0300 Subject: [PATCH] Guillermo - disable-user-system [skip ci] --- server/controllers/system.php | 1 + server/controllers/system/init-settings.php | 3 +-- server/data/ERRORS.php | 4 ++-- tests/init.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/controllers/system.php b/server/controllers/system.php index 18f96ccc..99ae4d82 100644 --- a/server/controllers/system.php +++ b/server/controllers/system.php @@ -16,6 +16,7 @@ require_once 'system/enabled-user-system.php'; require_once 'system/add-api-key.php'; require_once 'system/delete-api-key.php'; require_once 'system/get-all-keys.php'; +require_once 'system/get-stats.php'; require_once 'system/delete-all-users.php'; require_once 'system/backup-database.php'; require_once 'system/download.php'; diff --git a/server/controllers/system/init-settings.php b/server/controllers/system/init-settings.php index 3ce00b75..808fafd5 100644 --- a/server/controllers/system/init-settings.php +++ b/server/controllers/system/init-settings.php @@ -42,8 +42,7 @@ class InitSettingsController extends Controller { 'title' => 'Support Center', 'url' => 'http://www.opensupports.com/support', 'registration' => true, - 'user-system-enabled' => true - 'registration' => true, + 'user-system-enabled' => true, 'last-stat-day' => '20170101', //TODO: get current date 'ticket-gap' => Hashing::generateRandomPrime(100000, 999999), 'file-gap' => Hashing::generateRandomPrime(100000, 999999), diff --git a/server/data/ERRORS.php b/server/data/ERRORS.php index 6e2921b8..1f49d6de 100644 --- a/server/data/ERRORS.php +++ b/server/data/ERRORS.php @@ -36,8 +36,8 @@ class ERRORS { const INVALID_SUBJECT = 'INVALID_SUBJECT'; const INVALID_BODY = 'INVALID_BODY'; const USER_SYSTEM_DISABLED= 'USER_SYSTEM_DISABLED'; - const SYSTEM_USER_IS_ALREADY_DISABLED= 'SYSTEM_USER_IS_ALREADY_DISABLED'; - const SYSTEM_USER_IS_ALREADY_ENABLED= 'SYSTEM_USER_IS_ALREADY_ENABLED'; + const SYSTEM_USER_IS_ALREADY_DISABLED = 'SYSTEM_USER_IS_ALREADY_DISABLED'; + const SYSTEM_USER_IS_ALREADY_ENABLED = 'SYSTEM_USER_IS_ALREADY_ENABLED'; const INVALID_PERIOD = 'INVALID_PERIOD'; const NAME_ALREADY_USED = 'NAME_ALREADY_USED'; const INVALID_FILE = 'INVALID_FILE'; diff --git a/tests/init.rb b/tests/init.rb index 75c8b75e..90a63e4b 100644 --- a/tests/init.rb +++ b/tests/init.rb @@ -53,9 +53,9 @@ require './system/edit-mail-template.rb' require './system/recover-mail-template.rb' require './system/disable-registration.rb' require './system/enable-registration.rb' -require './system/disable-user-system.rb' require './system/get-stats.rb' require './system/add-api-key.rb' require './system/delete-api-key.rb' require './system/get-all-keys.rb' require './system/file-upload-download.rb' +require './system/disable-user-system.rb'