Skip to content

Commit

Permalink
Merge pull request #116 from humhub/enh/space-membership-attributes
Browse files Browse the repository at this point in the history
[1.15] Space: Membership Attributes
  • Loading branch information
luke- committed Jul 31, 2024
2 parents 0f8f768 + 01dcd8c commit 05e9426
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
8 changes: 7 additions & 1 deletion controllers/space/MembershipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public function actionCreate($spaceId, $userId)
return $this->returnError(400, 'You cannot administer this space!');
}

$space->addMember($userId, Yii::$app->request->get('canLeave', true), Yii::$app->request->get('silent', false));
$space->addMember(
$userId,
Yii::$app->request->get('canLeave', true),
Yii::$app->request->get('silent', false),
Space::USERGROUP_MEMBER,
Yii::$app->request->get('showAtDashboard', true),
);

return $this->returnSuccess('Member added!');
}
Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Changelog
=========

0.10.1 (Unreleased)
0.10.1 (July 31, 2024)
----------------------
- Enh #173: Added possibility to change `created_at` of `content`
- Enh #116: Allow to set `show_at_dashboard` and `can_cancel_membership` on space membership creating

0.10.0 (July 16, 2024)
----------------------
Expand Down
Loading

0 comments on commit 05e9426

Please sign in to comment.