IRemoteAddress.php 433 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Security\Ip;
  8. /**
  9. * IP address of the connected client
  10. *
  11. * @since 30.0.0
  12. */
  13. interface IRemoteAddress {
  14. /**
  15. * Check if the current remote address is allowed to perform admin actions
  16. * @since 30.0.0
  17. */
  18. public function allowsAdminActions(): bool;
  19. }