mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-25 05:28:20 -05:00
We fixed the error code for ocm space sharing
This commit is contained in:
@@ -329,7 +329,7 @@ func (s DriveItemPermissionsService) SpaceRootInvite(ctx context.Context, driveI
|
||||
objectID := invite.GetRecipients()[0].GetObjectId()
|
||||
_, err := s.identityCache.GetAcceptedUser(ctx, objectID)
|
||||
if err == nil {
|
||||
return libregraph.Permission{}, errorcode.New(errorcode.NotAllowed, "federated user can not become a space member")
|
||||
return libregraph.Permission{}, errorcode.New(errorcode.InvalidRequest, "federated user can not become a space member")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user