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 0f1616a commit 20725ecCopy full SHA for 20725ec
src/Application/UI/Component.php
@@ -74,7 +74,8 @@ public function getUniqueId(): string
74
protected function createComponent(string $name): ?Nette\ComponentModel\IComponent
75
{
76
if (method_exists($this, $method = 'createComponent' . $name)) {
77
- (new AccessPolicy($this, new \ReflectionMethod($this, $method)))->checkAccess();
+ (new AccessPolicy($this, $rm = new \ReflectionMethod($this, $method)))->checkAccess();
78
+ $this->checkRequirements($rm);
79
}
80
$res = parent::createComponent($name);
81
if ($res && !$res instanceof SignalReceiver && !$res instanceof StatePersistent) {
0 commit comments