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

rero / rero-ils / 31486993305
91%

Build:
DEFAULT BRANCH: staging
Ran 11 Aug 2026 12:22PM UTC
Jobs 1
Files 612
Run time 1min
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

11 Aug 2026 11:31AM UTC coverage: 91.276% (+0.02%) from 91.254%
31486993305

push

github

PascalRepond
fix(permissions): repair wiki edition permission

The wiki edition views crashed with an AttributeError for any logged
user: flask-security's `roles_required` reads `current_app.security`,
an attribute flask-security-invenio never sets, as it registers its
state in `app.extensions["security"]` only.

* Replace the nested `login_required`/`roles_required` decorators by
  an explicit authentication and role check.
* Grant the edition to the `admin` role as well, to match
  `wiki_edit_ui_permission`, which drives the edit buttons display.
* Add a test covering the anonymous, unauthorised and editor cases.

Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>

3 of 3 new or added lines in 1 file covered. (100.0%)

24273 of 26593 relevant lines covered (91.28%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31486993305.1 11 Aug 2026 12:22PM UTC 612
91.28
GitHub Action Run
Source Files on build 31486993305
  • Tree
  • List 612
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31486993305
  • 65ea9e95 on github
  • Prev Build on staging (#31477105275)
  • Next Build on staging (#31574472929)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc