Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionIndex() {
- if (Yii::app()->user->checkAccess('viewPerson')) {
- $this->render('index');
- }
- else {
- $this->redirect(array('site/login'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement