nextcloud/lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
665 B
PHP
Raw Permalink Normal View History

2013-08-17 05:16:48 -04:00
<?php
declare(strict_types=1);
2013-08-17 05:16:48 -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
*/
namespace OC\AppFramework\Middleware\Security\Exceptions;
use OCP\AppFramework\Http;
2013-08-17 05:16:48 -04:00
/**
* Class NotAdminException is thrown when a resource has been requested by a
* non-admin user that is not accessible to non-admin users.
*
* @package OC\AppFramework\Middleware\Security\Exceptions
2013-08-17 05:16:48 -04:00
*/
class NotAdminException extends SecurityException {
public function __construct(string $message) {
parent::__construct($message, Http::STATUS_FORBIDDEN);
2013-08-17 05:16:48 -04:00
}
}