feat(i18n): update localization for knowledge bases and organization features
- Added new localization strings for 'Mine' in English and Chinese. - Enhanced organization subtitles to include agents in shared spaces. - Updated permission descriptions to clarify roles related to knowledge bases and agents. - Improved UI components to reflect new labels and permissions for better user experience. This update strengthens the localization support, ensuring clarity in knowledge base and organization functionalities across multiple languages.
This commit is contained in:
@@ -483,6 +483,12 @@ func (s *organizationService) JoinByInviteCode(ctx context.Context, inviteCode s
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// check if the organization need approval
|
||||
if org.RequireApproval {
|
||||
logger.Infof(ctx, "Organization %s requires approval", org.ID)
|
||||
return nil, ErrOrgPermissionDenied
|
||||
}
|
||||
|
||||
// Check if user is already a member
|
||||
_, err = s.orgRepo.GetMember(ctx, org.ID, userID)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user