Initial import of space_profiles module
This commit is contained in:
25
controllers/ProfileController.php
Normal file
25
controllers/ProfileController.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user