feat(organization): add member limit feature
- Introduced a new member limit feature for organizations, allowing a maximum number of members to be set (default is 50; 0 means unlimited). - Updated API endpoints to handle member limit during organization creation and updates. - Implemented validation to prevent adding members when the limit is reached. - Enhanced UI components to display and manage member limits, including localization updates for English and Chinese. - Added migration files to support the new member limit column in the organizations table. This update improves organization management by allowing administrators to control membership size.
This commit is contained in:
+11
-3
@@ -54,19 +54,27 @@
|
||||
- 空间管理员审批通过时可指定角色(管理员/编辑者/只读);若不指定,则使用申请时填写的角色或默认只读。
|
||||
- 审批拒绝后,用户不是成员,无法访问该空间及其共享知识库。
|
||||
|
||||
### 2.3 邀请码
|
||||
### 2.3 成员人数上限
|
||||
|
||||
- 空间可设置**成员人数上限**(默认 50;设为 0 表示不限制)。
|
||||
- 达到或超过上限时:
|
||||
- 邀请码加入、管理员添加成员、审批通过加入均会被拒绝,并提示「该空间成员已满」;
|
||||
- 已满时不允许提交新的加入申请。
|
||||
- 管理员在设置中调低上限时,若当前成员数已超过新上限,不允许保存,需先移除成员或设置更大的上限。
|
||||
|
||||
### 2.4 邀请码
|
||||
|
||||
- 仅空间**管理员**可生成或刷新邀请码。
|
||||
- 邀请码可设置有效期(例如 1 天、7 天、30 天或永不过期);过期后需重新生成才能使用。
|
||||
- 同一时间一个空间仅有一个有效邀请码;重新生成会使旧邀请码失效。
|
||||
|
||||
### 2.4 离开空间
|
||||
### 2.5 离开空间
|
||||
|
||||
- 成员可主动退出空间(无需管理员同意)。
|
||||
- 管理员可移除其他成员(不能移除空间创建者)。
|
||||
- 退出或移除后,该用户不再拥有该空间内的任何角色,也无法再通过该空间访问其共享的知识库。
|
||||
|
||||
### 2.5 删除空间
|
||||
### 2.6 删除空间
|
||||
|
||||
- 仅空间**创建者**可删除空间。
|
||||
- 删除空间时会解除该空间下所有知识库的共享关系,成员将无法再通过该空间访问这些知识库。
|
||||
|
||||
Reference in New Issue
Block a user