Class X2ControllerPermissionsBehavior
Description of X2ControllerPermissionsBehavior
- CComponent
- CBehavior implements IBehavior
- ControllerPermissionsBehavior
- X2ControllerPermissionsBehavior
Package: application\components\permissions
Located at x2engine/protected/components/permissions/X2ControllerPermissionsBehavior.php
Located at x2engine/protected/components/permissions/X2ControllerPermissionsBehavior.php
public
boolean
|
#
beforeAction( string $action = null )
Extension of a base Yii function, this method is run before every action in a controller. If true is returned, it procedes as normal, otherwise it will redirect to the login page or generate a 403 error. |
public
boolean
|
#
checkPermissions( mixed & $model, string $action = null )
Determines if we have permission to view/edit/delete something based on the assignedTo field. |
public
array
|
#
formatMenu( array $array, array $params = array() )
Format the left sidebar menu of links to remove items which a user is not allowed to perform due to role settings. |
attach(),
detach(),
events(),
getEnabled(),
getOwner(),
setEnabled()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
$enabled,
$owner
|