diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-10-11 12:07:20 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-29 00:59:09 -0300 |
commit | 485d6d657761370dc200d9cdb023ad564c23c4e9 (patch) | |
tree | 51780af96b14ebdc716922fdc5fa647310ab45b4 /settings/Controller | |
parent | 2507e7459d42e47f0581aeb69b738fec6497c6b5 (diff) | |
download | nextcloud-server-485d6d657761370dc200d9cdb023ad564c23c4e9.tar.gz nextcloud-server-485d6d657761370dc200d9cdb023ad564c23c4e9.zip |
use proper return codes and handle failure cases
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/UsersController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/Controller/UsersController.php b/settings/Controller/UsersController.php index 411269a4351..56944ced984 100644 --- a/settings/Controller/UsersController.php +++ b/settings/Controller/UsersController.php @@ -567,7 +567,8 @@ class UsersController extends Controller { 'data' => array( 'message' => (string)$this->l10n->t('Error while disabling user.') ) - ) + ), + Http::STATUS_FORBIDDEN ); } } @@ -624,7 +625,8 @@ class UsersController extends Controller { 'data' => array( 'message' => (string)$this->l10n->t('Error while enabling user.') ) - ) + ), + Http::STATUS_FORBIDDEN ); } } |