yii2-gii
yii2-gii copied to clipboard
Add default access control for controller methods
Q | A |
---|---|
Is bugfix? | no |
New feature? | yes |
Breaks BC? | no |
Does not make sense to me. Would you please explain why the change is required?
This adds getting started code for access control filter which can improved further as required and saves time for having to add it manually for CRUD generator. Also it is in line with yii1 gii which has similar behaviour to add a default access control filter.
I am open to any better implementation/suggestion.
I am for adding this because nearly all crud needs some access control and this way it is less likely to be forgotten. It could be configurable somehow. not sure how though.
Thinking about it once again, it should be OK.
Maybe make sense do this feature optional?