The four existing jointypes, 'open', 'controlled', 'request' and
'invite' are mutually exclusive, but they don't need to be so strict.
This patch introduces more flexibility in the way groups allow new
members to join.
* Group admins can always send membership invitations to a group, even
if it's open or controlled
* Membership requests can be enabled for any group unless it has open
membership.
* The grouptype now determines the set of roles available to a group,
but no longer restricts the available join types.
The db upgrade will preserve existing behaviour apart from enabling
invitations on open, request, and controlled groups.
Change-Id: I8bb0940a37f3c0c36366c1d5b8d27e8b9914a7e3
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/625 gitorious. org/mahara/ mahara/ commit/ 027ffc0d2414e32 be4bf17d78cece9 496bde9dcf
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 027ffc0d2414e32 be4bf17d78cece9 496bde9dcf
Author: Richard Mansfield <email address hidden>
Date: Mon Aug 22 18:27:23 2011 +1200
Add more flexible group jointypes (bug #610690)
The four existing jointypes, 'open', 'controlled', 'request' and
'invite' are mutually exclusive, but they don't need to be so strict.
This patch introduces more flexibility in the way groups allow new
members to join.
* Group admins can always send membership invitations to a group, even
if it's open or controlled
* Membership requests can be enabled for any group unless it has open
membership.
* The grouptype now determines the set of roles available to a group,
but no longer restricts the available join types.
The db upgrade will preserve existing behaviour apart from enabling
invitations on open, request, and controlled groups.
Change-Id: I8bb0940a37f3c0 c36366c1d5b8d27 e8b9914a7e3
Signed-off-by: Richard Mansfield <email address hidden>