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

nette / security / 40742428849
94%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2026 06:09PM UTC
Jobs 1
Files 25
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

28 Oct 2026 06:09PM UTC coverage: 94.175% (+4.0%) from 90.143%
40742428849

push

github

dg
User: authorization is decided by voters instead of an authorizator per role (BC break)

A Voter decides about a Principal, the effective state of the user: the
identity only while logged in (unlike User::getId(), which keeps returning
the retained identity after logout), the effective roles and the voters,
so that a voter may delegate through $principal->isAllowed(). Ownership is
checked by Principal::hasId(), which never matches for a guest. A vote is
a Vote: a single Forbid wins, otherwise a single Allow suffices.
Vote::allowIf() allows or abstains, so forbidding is always written on
purpose. User::createPrincipal() decides about someone else than the
current user, or about a visitor for null, taking the identity as it is;
getPrincipal() is built on it.

Permission is one of the voters; its vote() ORs the roles, forbids when
an explicit deny rule stopped them and abstains when only the default
deny-all did, as well as on roles and resources the ACL does not know
instead of throwing.

SecurityExtension adds every service implementing Voter to the user.
setAuthorizator() and the getters are deprecated; the third parameter of
the User constructor is a variadic list of voters, User::isAllowed() types
the privilege as ?string.

60 of 61 new or added lines in 5 files covered. (98.36%)

7 existing lines in 4 files now uncovered.

582 of 618 relevant lines covered (94.17%)

0.94 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
96.34
1.67% src/Bridges/SecurityDI/SecurityExtension.php

Coverage Regressions

Lines Coverage ∆ File
4
92.93
-0.97% src/Security/User.php
1
96.34
1.67% src/Bridges/SecurityDI/SecurityExtension.php
1
96.73
1.05% src/Security/Permission.php
1
54.55
0.0% src/Security/SimpleIdentity.php
Jobs
ID Job ID Ran Files Coverage
1 40742428849.1 28 Oct 2026 06:09PM UTC 25
94.17
GitHub Action Run
Source Files on build 40742428849
  • Tree
  • List 25
  • Changed 12
  • Source Changed 10
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40742428849
  • e27af89d on github
  • Prev Build on master (#40563651580)
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