summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-02-07 13:25:15 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-02-07 13:25:15 +0100
commit485e2a282bae4087171691ed116b96e5cc346755 (patch)
treecd6ac3ffc0233fc412a8035fdf0c37493afb6d26 /settings
parent11ded92a7305f30a6d3cb20c7631a04078ac9fbd (diff)
parentb9f180e0014f5bb3c37137f41a06df7acf2496e9 (diff)
downloadnextcloud-server-485e2a282bae4087171691ed116b96e5cc346755.tar.gz
nextcloud-server-485e2a282bae4087171691ed116b96e5cc346755.zip
Merge pull request #13753 from owncloud/use-403-instead-of-200
Use 403 instead of 200 response
Diffstat (limited to 'settings')
-rw-r--r--settings/middleware/subadminmiddleware.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/middleware/subadminmiddleware.php b/settings/middleware/subadminmiddleware.php
index a5c005e3148..52b77cd7e4f 100644
--- a/settings/middleware/subadminmiddleware.php
+++ b/settings/middleware/subadminmiddleware.php
@@ -59,7 +59,9 @@ class SubadminMiddleware extends Middleware {
* @return TemplateResponse
*/
public function afterException($controller, $methodName, \Exception $exception) {
- return new TemplateResponse('core', '403', array(), 'guest');
+ $response = new TemplateResponse('core', '403', array(), 'guest');
+ $response->setStatus(Http::STATUS_FORBIDDEN);
+ return $response;
}
}