-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PresenterComponent: now calling checkRequirements() on createComponent<n... #428
PresenterComponent: now calling checkRequirements() on createComponent<n... #428
Conversation
Really bad idea! What do you do if create component called from template? |
Well, you shouldn't be doing that anyways, when the user doesn't have the privilege.
|
I know but it there problem if I forgot do that. |
Better broken rendering than security hole, isn't it? |
This is the topic for next framework version. |
ping |
bump |
👍 Although I think there should be a test as well (ping @hosiplan). |
$this->checkRequirements($this->getReflection()->getMethod($method)); | ||
} | ||
|
||
parent::createComponent($name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing return!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
ping |
991ba1a
to
e23de7a
Compare
Is this still relevant? If so, please feel free to open PR at https://github.com/nette/application Thank you. @dg, please close |
How did I forget about this? Of course it's still relevant. nette/application#158 |
@enumag Thank you, we will continue on the nette/application#158 This can be closed then @dg |
So I am closing it here. |
Thank you |
No description provided.