Detailed Description
Definition at line 28 of file ExtAccessControlFilter.php.
Member Function Documentation
- Parameters:
-
IWebUser | $user | the user object |
- Returns:
- boolean whether the rule applies to the role
Definition at line 33 of file ExtAccessControlFilter.php.
{
if (empty($this->roles))
return true;
$aro = RGroup::model()->find('foreign_key = :id AND model = :model',
array(':id' => $user->id, ':model' => RequestingActiveRecord::$model)
);
if(!$aro)
return false;
foreach ($this->roles as $role) {
if($aro->is($role))
return true;
}
return false;
}
- Parameters:
-
IWebUser | $user | the user object |
- Returns:
- boolean whether the rule applies to the role
Definition at line 38 of file ExtAccessControlFilter.php.
{
if (empty($this->roles))
return true;
$aro = $class::model()->find('foreign_key = :id AND model = :model',
);
if(!$aro)
return false;
foreach ($this->roles as $role) {
if($aro->is($role))
return true;
}
return false;
}
The documentation for this class was generated from the following files: