summaryrefslogtreecommitdiffstats
path: root/server/src/Endpoints/V1/Labels
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/Endpoints/V1/Labels')
-rw-r--r--server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs b/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs
index 0868671..30d72ec 100644
--- a/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs
+++ b/server/src/Endpoints/V1/Labels/UpdateLabelRoute.cs
@@ -26,7 +26,7 @@ public class UpdateLabelEndpoint : RouteBaseSync.WithRequest<TimeLabel.TimeLabel
return NotFound();
}
- if (LoggedInUser.Id != label.User.Id) {
+ if (LoggedInUser.Id != label.UserId) {
return Forbid();
}