20 'actions' => array(
'login',
'logout',
'registration',
'recovery',
'captcha'),
24 $contollerId = Yii::app()->controller->id;
25 if (!empty($rules[$contollerId][
'extends'])) {
26 $rules[$contollerId] = $rules[$rules[$contollerId][
'extends']];
28 if (!empty($rules[$contollerId])) {
29 foreach ($rules[$contollerId] as $rule) {
34 $baseRules[] = array(
'deny',
45 'userId' => Yii::app()->request->getParam(
'uid'),
46 'siteId' => Yii::app()->request->getParam(
'siteId')
55 'roles' => array(
'readSite' => $siteParams),
62 'roles' => array(
'createSite' => $siteParams),
65 'siteDelete' => array(
69 'roles' => array(
'deleteSite' => $siteParams),
72 'siteUpdate' => array(
76 'roles' => array(
'updateSite' => $siteParams),
79 'siteRecrawl' => array(
'extends' =>
'siteUpdate'),
80 'siteCleanup' => array(
'extends' =>
'siteDelete'),
81 'urlsView' => array(
'extends' =>
'sitesView'),
82 'urlUpdate' => array(
'extends' =>
'siteUpdate'),
83 'urlRecrawl' => array(
'extends' =>
'siteUpdate'),
84 'urlReprocess' => array(
'extends' =>
'siteUpdate'),
85 'urlCleanup' => array(
'extends' =>
'siteDelete'),
86 'urlDelete' => array(
'extends' =>
'siteDelete'),
87 'resourceDownload' => array(
'extends' =>
'siteUpdate'),
88 'ajax' => array(
'extends' =>
'siteNew'),