aboutsummaryrefslogtreecommitdiff
path: root/userapi/internal
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/internal')
-rw-r--r--userapi/internal/user_api.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/userapi/internal/user_api.go b/userapi/internal/user_api.go
index 8977697b..4049d13b 100644
--- a/userapi/internal/user_api.go
+++ b/userapi/internal/user_api.go
@@ -386,11 +386,6 @@ func (a *UserInternalAPI) PerformDeviceUpdate(ctx context.Context, req *api.Perf
}
res.DeviceExists = true
- if dev.UserID != req.RequestingUserID {
- res.Forbidden = true
- return nil
- }
-
err = a.DB.UpdateDevice(ctx, localpart, domain, req.DeviceID, req.DisplayName)
if err != nil {
util.GetLogger(ctx).WithError(err).Error("deviceDB.UpdateDevice failed")