fix: [OCISDEV-449] fix user light creation
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
This commit is contained in:
1 parent
e5a2c8e6e5
commit
e3a2a148ff
2 files changed
+10
No files matched your search
@@ -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