• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 25801739746 / 1
80%
main: 81%

Build:
Build:
LAST BUILD BRANCH: copilot/fix-issue-1485
DEFAULT BRANCH: main
Ran 13 May 2026 01:56PM UTC
Files 163
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 May 2026 01:20PM UTC coverage: 80.312% (+0.04%) from 80.273%
25801739746.1

Pull #2163

github

web-flow
fix: block non-admins from creating public assets; add regression tests

When account_id is absent from a POST /assets request body, Marshmallow
does not invoke the @validates("account_id") field validator, so the
inline `if account_id is not None:` guard silently skipped the permission
check. Any authenticated user could create a public (account-less) asset.

Fix: raise Forbidden when account_id is None and the caller is neither a
site admin nor CLI.

Add tests:
- test_regular_user_cannot_create_public_asset
- test_regular_user_cannot_create_child_of_public_asset

Update AGENTS.md: auth concerns must be covered by tests, not code
inspection alone.

Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/b55c75f0-c9c5-4d45-9f17-4477d6cb4760

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>
Pull Request #2163: Fix auth issues: child asset creation, account page access

12548 of 15624 relevant lines covered (80.31%)

0.8 hits per line

Source Files on job 25801739746.1
  • Tree
  • List 163
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25801739746
  • 7fd9cfa5 on github
  • Prev Job for on copilot/fix-child-assets-auth-issues (#25731912624.1)
  • Next Job for on copilot/fix-child-assets-auth-issues (#25805579709.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc