This commit is contained in:
giovanni
2026-06-06 08:12:06 +07:00
parent 1ef32407f1
commit 5760bb6de8
2 changed files with 2 additions and 2 deletions
@@ -3216,7 +3216,7 @@ func (s *repportService) parseExpenseDepreciationV2Query(ctx *fiber.Ctx) (*valid
return nil, err
}
if locationScope.Restrict {
if locationScope.Restrict && locationID > 0 {
allowed := toInt64Slice(locationScope.IDs)
if len(allowed) == 0 {
return nil, fiber.NewError(fiber.StatusForbidden, "no location access")