Initial import of space_profiles module

This commit is contained in:
Kelin Rescue Hub
2026-04-04 13:11:50 -04:00
commit 87a59e5a0a
35 changed files with 1627 additions and 0 deletions

View 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,
]);
}
}