NotSubAdminException.php 400 B

1234567891011121314
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Provisioning_API\Middleware\Exceptions;
  7. use OCP\AppFramework\Http;
  8. class NotSubAdminException extends \Exception {
  9. public function __construct() {
  10. parent::__construct('Logged in account must be at least a sub admin', Http::STATUS_FORBIDDEN);
  11. }
  12. }