Class humhub\modules\content\components\UserGroupAccessValidator

Inheritancehumhub\modules\content\components\UserGroupAccessValidator » humhub\components\access\ActionAccessValidator » humhub\components\access\AccessValidator » yii\base\BaseObject

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
extractActions() humhub\modules\content\components\UserGroupAccessValidator
filterRelatedRules() Filters out rules not related to the current validator and action. humhub\components\access\ActionAccessValidator
getRuleName() Extracts the ruleName from the given array. humhub\components\access\AccessValidator
globalPermissionCheck() Checks if the current user has the default permission to access contentcontainer related actions. humhub\modules\content\components\UserGroupAccessValidator
isActionRelated() Checks if the current action is contained in the given $rule. humhub\components\access\AccessValidator
validate() humhub\modules\content\components\UserGroupAccessValidator

Property Details

$contentContainer public property
$name public property
public $name 'userGroup'
$strict public property
public $strict false

Method Details

extractActions() protected method

protected void extractActions ( $rule )
$rule
getReason() public method

public void getReason ( )
getUserGroupLevel() public method

public void getUserGroupLevel ( $userGroup )
$userGroup
globalPermissionCheck() protected method

Checks if the current user has the default permission to access contentcontainer related actions.

protected boolean globalPermissionCheck ( )
validate() protected method

protected void validate ( $rule )
$rule