We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990189c commit 36a8e10Copy full SHA for 36a8e10
src/Application/UI/Component.php
@@ -75,7 +75,8 @@ public function getUniqueId(): string
75
protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
76
{
77
if (method_exists($this, $method = 'createComponent' . $name)) {
78
- (new AccessPolicy($this, new \ReflectionMethod($this, $method)))->checkAccess();
+ (new AccessPolicy($this, $rm = new \ReflectionMethod($this, $method)))->checkAccess();
79
+ $this->checkRequirements($rm);
80
}
81
$res = parent::createComponent($name);
82
if ($res && !$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
0 commit comments