Revision #3 was created by thyseus on Mar 8, 2010, 11:19:49 AM.
User::hasRole and 'import', 0.3 rather than 0.2
Content
[...]
Your application has been created successfully under /var/www/testdrive.
~~~
2.) Extract the Yii User Management Module under the modules/ directory
of your new Web Application. Replace the _0.23 with the latest Version
available.
[...]
$ mkdir modules
$ cd modules
$ wget http://www.yiiframework.com/extension/yii-user-management/files/User_Management_Module_0.23.tar.bz2
$ tar xvf User_Management_Module_0.23.tar.bz2
~~~
[...]
'User'=>array(
'class' => 'User',
),
'import'=>array(
'application.modules.user.models.*',
~~~
[...]
```php
if(Yii::app()->User->::hasRole('role'))
{
// user is allowed
}
else
{