diff --git a/backend/src/api/Controllers/TodoController.cs b/backend/src/api/Controllers/TodoController.cs index e3a1d53..b047ccb 100644 --- a/backend/src/api/Controllers/TodoController.cs +++ b/backend/src/api/Controllers/TodoController.cs @@ -34,7 +34,7 @@ public IActionResult GetList([FromRoute] int id) return list switch { null => NotFound(), - var user => Ok(list), + var l => Ok(l), }; } diff --git a/backend/src/api/Filters/UserIdFilter.cs b/backend/src/api/Filters/UserIdFilter.cs index d7b8bbb..d7b5506 100644 --- a/backend/src/api/Filters/UserIdFilter.cs +++ b/backend/src/api/Filters/UserIdFilter.cs @@ -3,6 +3,7 @@ namespace api.Filters; +[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public class UserIdFilter : Attribute, IAuthorizationFilter { public void OnAuthorization(AuthorizationFilterContext context)