26 lines
651 B
PHP
26 lines
651 B
PHP
<?php
|
|
|
|
namespace humhub\modules\space_profiles\controllers;
|
|
|
|
use humhub\modules\content\components\ContentContainerController;
|
|
use humhub\modules\space_profiles\models\SpaceProfile;
|
|
|
|
class ProfileController extends ContentContainerController
|
|
{
|
|
protected function getAccessRules()
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public function actionView()
|
|
{
|
|
$profile = SpaceProfile::findOne(['contentcontainer_id' => $this->contentContainer->contentcontainer_id]);
|
|
|
|
return $this->render('view', [
|
|
'space' => $this->contentContainer,
|
|
'profile' => $profile,
|
|
'isPublicRoute' => false,
|
|
]);
|
|
}
|
|
}
|