mirror of https://github.com/sualko/cloud_bbb
28 lines
579 B
PHP
28 lines
579 B
PHP
<?php
|
|
|
|
namespace OCA\BigBlueButton;
|
|
|
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
|
use OCP\AppFramework\Http\Response;
|
|
use OCP\Template;
|
|
|
|
/**
|
|
* @template-extends Response<int, array<string, mixed>>
|
|
*
|
|
* (NC < 28)
|
|
* @psalm-suppress TooManyTemplateParams
|
|
*/
|
|
class NoPermissionResponse extends Response {
|
|
public function __construct() {
|
|
parent::__construct();
|
|
|
|
$this->setContentSecurityPolicy(new ContentSecurityPolicy());
|
|
$this->setStatus(403);
|
|
}
|
|
|
|
public function render() {
|
|
$template = new Template('core', '403', 'guest');
|
|
return $template->fetchPage();
|
|
}
|
|
}
|