Posted 24 December 2013 - 08:35 PM
Thanks, man! That's a thing which replaced yiiuser+Rights for me.
I don't think you need to add a profile like one in yii-user(just take a look if you haven't yet) - it's monstrous, like it should be if you want your product to fit all sizes^Wusers. One can add a profile according to his style.
But a thing I need - check if user can access specific page(e.g. in menu creating to show only links he can access), and you have this code as a private method in controller class.
Wouldn't it be better to put some method UWebUser::accessRoutes() which return all allowed routes and a UWebUser::canAccess($route), which can be used in UAccessController::_isRouteAllowed() to check if specific route is accessible? It's just about code architecture.
And yes, I can modify classes for my very own requests but someone else will need this someday perhaps.
p.s.: nice code style, easy-to-read-and-understand, thanks again.