feat: D1 — Shopping list (Issue #30) #43

Merged
marcel merged 24 commits from feat/issue-30-shopping-list into master 2026-04-08 22:22:02 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 40a6a0e92d - Show all commits

View File

@@ -35,7 +35,7 @@ public class HouseholdRoleInterceptor implements HandlerInterceptor {
String actualRole = householdResolver.resolveRole(auth.getName());
if (!annotation.value().equals(actualRole)) {
throw new ForbiddenException("Requires household role: " + annotation.value());
throw new ForbiddenException("Insufficient permissions");
}
return true;

View File

@@ -62,7 +62,7 @@ class HouseholdRoleInterceptorTest {
assertThatThrownBy(() -> interceptor.preHandle(request, response, handlerMethod))
.isInstanceOf(ForbiddenException.class)
.hasMessageContaining("planner");
.hasMessage("Insufficient permissions");
}
@Test