mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: Space admin user remove broken
This commit is contained in:
parent
ceb9f87628
commit
f573e3d42f
@ -22,7 +22,9 @@ HumHub Change Log
|
||||
- Chng: `humhub\modules\topic\models\Topic::attach` now accepts `humhub\modules\content\interfaces\ContentOwner` instances
|
||||
- Fix: Richtext without focusMenu on small devices overlaps previous sibling
|
||||
- Enh: Added random default color to `humhub\modules\ui\form\widgets\ColorPicker`
|
||||
- Chng: `humhub\modules\content\models\ContentTag:deleteAll()` and `humhub\modules\content\models\ContentTag:findAll()` now respect the tag type condition by default
|
||||
- Chng: `humhub\modules\content\models\ContentTag:deleteAll()` and `humhub\modules\content\models\ContentTag:findAll()` now respect the tag type condition by default- Fix: Space admin user remove broken
|
||||
- Fix: Space admin user remove broken
|
||||
|
||||
|
||||
1.3.1 (August 7, 2018)
|
||||
-----------------------
|
||||
|
@ -28,7 +28,7 @@ use yii\helpers\Html;
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit"><i class="fa fa-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<?= Html::activeDropDownList($searchModel, 'group_id', MembershipSearch::getRoles($space), ['class' => 'form-control', 'onchange' => 'this.form.submit()']); ?>
|
||||
@ -100,10 +100,12 @@ use yii\helpers\Html;
|
||||
'update' => function ($url, $model) {
|
||||
return false;
|
||||
},
|
||||
'delete' => function ($url, $model) {
|
||||
return Html::a('<i class="fa fa-times"></i>', '#', [
|
||||
'delete' => function ($url, $model) use($space) {
|
||||
$url = ['/space/manage/member/remove', 'userGuid' => $model->user->guid, 'container' => $space];
|
||||
return Html::a('<i class="fa fa-times"></i>', $url, [
|
||||
'title' => Yii::t('SpaceModule.manage', 'Remove from space'),
|
||||
'class' => 'btn btn-danger btn-xs tt',
|
||||
'data-method' => 'POST',
|
||||
'data-confirm' => 'Are you really sure?'
|
||||
]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user