Commit 0e709bb
committed
fix(symfony): security regression when ResourceAccessChecker is decorated (#7896)
Commit 359a128 introduced a regression
when ResourceAccessChecker is decorated, and
security/securityPostDenormalize are using object in is_granted
expression.
The issue arise since AccessCheckerProvider violates the Liskov
substitution principle by assuming that if the (previously unknown)
interface ObjectVariableCheckerInterface is not defined, then the
pre_read optimization can be used without an object instance.1 parent 7cc01a6 commit 0e709bb
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| |||
0 commit comments