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