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

nette / security
94%

Build:
DEFAULT BRANCH: master
Repo Added 25 Jan 2021 12:42AM UTC
Files 22
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • v3.0
  • v3.0.6
  • v3.1
  • v3.1.4
  • v3.1.5
  • v3.1.6
  • v3.1.7
  • v3.1.8
  • v3.2
  • v3.2.0
  • v3.2.1
  • v3.2.2
  • v3.2.3
  • v3.2.4
  • v3.2.5
  • v3.2.6
  • v3.2.7

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

Relevant lines Covered
Build:
Build:
618 RELEVANT LINES 582 COVERED LINES
0.94 HITS PER LINE
Source Files on master
  • Tree
  • List 25
  • Changed 12
  • Source Changed 10
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
40742428849 master 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 retaine... push 28 Oct 2026 06:09PM UTC dg github
94.17
40563651580 master IdentityHandler: make getGuestIdentity() a regular interface method (BC break) Promotes the optional @method to a required method, so User no longer needs method_exists() to call it. BC break: existing IdentityHandler implementations must now dec... push 27 Oct 2026 06:50PM UTC dg github
90.14
39712644949 master IdentityHandler: make getGuestIdentity() a regular interface method (BC break) Promotes the optional @method to a required method, so User no longer needs method_exists() to call it. BC break: existing IdentityHandler implementations must now dec... push 22 Oct 2026 02:40AM UTC dg github
90.33
26321314766 master IdentityHandler: make getGuestIdentity() a regular interface method (BC break) Promotes the optional @method to a required method, so User no longer needs method_exists() to call it. BC break: existing IdentityHandler implementations must now dec... push 23 May 2026 02:40AM UTC dg github
91.85
26320711647 master IdentityHandler: make getGuestIdentity() a regular interface method (BC break) Promotes the optional @method to a required method, so User no longer needs method_exists() to call it. BC break: existing IdentityHandler implementations must now dec... push 23 May 2026 02:10AM UTC dg github
91.85
26320572153 master IdentityHandler: make getGuestIdentity() a regular interface method (BC break) Promotes the optional @method to a required method, so User no longer needs method_exists() to call it. BC break: existing IdentityHandler implementations must now dec... push 23 May 2026 02:04AM UTC dg github
91.85
26320370796 master User: deprecated magic properties (BC break) push 23 May 2026 01:55AM UTC dg github
91.85
25702111601 master User: deprecated magic properties (BC break) push 11 May 2026 10:54PM UTC dg github
91.81
25698236885 master User: deprecated magic properties (BC break) push 11 May 2026 09:25PM UTC dg github
91.81
22835249014 master User: deprecated magic properties (BC break) push 09 Mar 2026 01:59AM UTC dg github
91.81
See All Builds (221)
  • Repo on GitHub
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