2020-06-16 16:54:50 +02:00
|
|
|
<?php
|
2020-06-19 09:28:58 +02:00
|
|
|
|
2020-06-16 16:54:50 +02:00
|
|
|
namespace OCA\BigBlueButton;
|
|
|
|
|
|
|
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
2020-09-23 12:33:09 +02:00
|
|
|
use OCP\AppFramework\Http\Response;
|
|
|
|
use OCP\Template;
|
2020-06-16 16:54:50 +02:00
|
|
|
|
2024-10-28 14:59:01 +01:00
|
|
|
/**
|
|
|
|
* @template-extends Response<int, array<string, mixed>>
|
2024-10-28 15:14:22 +01:00
|
|
|
*
|
|
|
|
* (NC < 28)
|
|
|
|
* @psalm-suppress TooManyTemplateParams
|
2024-10-28 14:59:01 +01:00
|
|
|
*/
|
2020-06-19 09:28:58 +02:00
|
|
|
class NoPermissionResponse extends Response {
|
|
|
|
public function __construct() {
|
2020-06-16 16:54:50 +02:00
|
|
|
parent::__construct();
|
|
|
|
|
|
|
|
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
2020-08-31 16:25:58 +02:00
|
|
|
$this->setStatus(403);
|
2020-06-16 16:54:50 +02:00
|
|
|
}
|
|
|
|
|
2020-06-19 09:28:58 +02:00
|
|
|
public function render() {
|
2020-06-16 16:54:50 +02:00
|
|
|
$template = new Template('core', '403', 'guest');
|
|
|
|
return $template->fetchPage();
|
|
|
|
}
|
|
|
|
}
|