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\Template;
|
|
|
|
use OCP\AppFramework\Http\Response;
|
|
|
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
|
|
|
|
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());
|
|
|
|
$this->setStatus(404);
|
|
|
|
}
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|