Commits

christiansalazar  committed ac6ebbb

actualizando el ejemplo del formulario de edicion de authitem.

  • Participants
  • Parent commits 1fe6833

Comments (0)

Files changed (1)

File views/ui/_authitemform.php

 			<?php echo CrugeTranslator::t(
 			"regla de ejemplo:"); ?>
 			<br/>
-			<div class='code'>return Yii::app()->user->id==$params["post"]->authID;");</div>
+			<div class='code'>return Yii::app()->user->id==$params["post"]->authID;</div>
 			<br/>
 			<div class='code'>
 				$params = ...<?php echo CrugeTranslator::t("cualquier cosa"); ?>...;<br/>
-				if(Yii::app()->user->rbac->checkAccess('<?php echo $model->name;?>', $params)){ ... }
+				if(Yii::app()->user->checkAccess('<?php echo $model->name;?>', $params)){ ... }
 			</div>
 			<br/>
 		</p>