Browse Source

Better phpdoc for AccessControl

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
f34d7064ea
  1. 10
      framework/yii/web/AccessControl.php

10
framework/yii/web/AccessControl.php

@ -31,15 +31,17 @@ use yii\base\ActionFilter;
* 'class' => \yii\web\AccessControl::className(), * 'class' => \yii\web\AccessControl::className(),
* 'only' => array('create', 'update'), * 'only' => array('create', 'update'),
* 'rules' => array( * 'rules' => array(
* // deny all POST requests
* array(
* 'allow' => false,
* 'verbs' => array('POST')
* ),
* // allow authenticated users * // allow authenticated users
* array( * array(
* 'allow' => true, * 'allow' => true,
* 'roles' => array('@'), * 'roles' => array('@'),
* ), * ),
* // deny all * // everything else is denied
* array(
* 'allow' => false,
* ),
* ), * ),
* ), * ),
* ); * );

Loading…
Cancel
Save