mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-28 14:59:49 -05:00
fix wrong error return
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
committed by
Florian Schade
parent
01b9521d09
commit
b0c23dce64
@@ -562,7 +562,7 @@ func (s DriveItemPermissionsService) UpdatePermission(ctx context.Context, itemI
|
||||
if s.config.IncludeOCMSharees {
|
||||
updatePermission, err := s.updateOCMPermission(ctx, permissionID, itemID, &newPermission)
|
||||
if err == nil {
|
||||
return *updatePermission, err
|
||||
return *updatePermission, nil
|
||||
}
|
||||
}
|
||||
return libregraph.Permission{}, err
|
||||
|
||||
Reference in New Issue
Block a user