2013-08-17 05:16:48 -04:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2013-08-17 05:16:48 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2013-08-17 05:16:48 -04:00
|
|
|
*/
|
2016-04-22 09:28:48 -04:00
|
|
|
namespace OC\AppFramework\Middleware\Security\Exceptions;
|
2015-02-26 05:37:37 -05:00
|
|
|
|
2015-11-28 05:06:46 -05:00
|
|
|
use OCP\AppFramework\Http;
|
2013-08-17 05:16:48 -04:00
|
|
|
|
|
|
|
|
/**
|
2015-11-28 05:06:46 -05:00
|
|
|
* Class NotLoggedInException is thrown when a resource has been requested by a
|
|
|
|
|
* guest user that is not accessible to the public.
|
|
|
|
|
*
|
2016-04-22 09:28:48 -04:00
|
|
|
* @package OC\AppFramework\Middleware\Security\Exceptions
|
2013-08-17 05:16:48 -04:00
|
|
|
*/
|
2015-11-28 05:06:46 -05:00
|
|
|
class NotLoggedInException extends SecurityException {
|
|
|
|
|
public function __construct() {
|
|
|
|
|
parent::__construct('Current user is not logged in', Http::STATUS_UNAUTHORIZED);
|
2013-08-17 05:16:48 -04:00
|
|
|
}
|
|
|
|
|
}
|