2016-08-11 09:45:15 +02:00
|
|
|
<?php
|
2017-11-06 15:56:42 +01:00
|
|
|
/**
|
2024-06-02 15:26:54 +02:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-11-06 15:56:42 +01:00
|
|
|
*/
|
2016-08-11 09:45:15 +02:00
|
|
|
namespace OCA\Provisioning_API\Middleware\Exceptions;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Http;
|
|
|
|
|
|
|
|
class NotSubAdminException extends \Exception {
|
|
|
|
public function __construct() {
|
2022-09-21 17:44:32 +02:00
|
|
|
parent::__construct('Logged in account must be at least a sub admin', Http::STATUS_FORBIDDEN);
|
2016-08-11 09:45:15 +02:00
|
|
|
}
|
2019-11-22 20:52:10 +01:00
|
|
|
}
|