mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
fix: [OCISDEV-449] fix user light creation
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
This commit is contained in:
6
changelog/unreleased/fix-user-light-creation.md
Normal file
6
changelog/unreleased/fix-user-light-creation.md
Normal file
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix user light creation
|
||||
|
||||
When trying to switch a user to user light before they logged in for the first time, an error would occur.
|
||||
The server now correctly handles this case and allows switching to user light even before the first login.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11765
|
||||
@@ -30,6 +30,10 @@ var (
|
||||
func DisablePersonalSpace(ctx context.Context, client gateway.GatewayAPIClient, userID string) error {
|
||||
logger := appctx.GetLogger(ctx)
|
||||
sp, err := getPersonalSpace(ctx, client, userID)
|
||||
if err == ErrNotFound {
|
||||
logger.Debug().Str("userID", userID).Msg("no personal space found to delete")
|
||||
return nil
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to retrieve personal space: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user