Class humhub\modules\admin\components\BaseAdminPermission

Inheritancehumhub\modules\admin\components\BaseAdminPermission » humhub\libs\BasePermission » yii\base\BaseObject
Subclasseshumhub\modules\admin\permissions\ManageGroups, humhub\modules\admin\permissions\ManageModules, humhub\modules\admin\permissions\ManageSettings, humhub\modules\admin\permissions\ManageSpaces, humhub\modules\admin\permissions\ManageUsers, humhub\modules\admin\permissions\SeeAdminInformation
Available since version1.2

BaseAdminPermission is a fixed allowed permission for the admin group

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$defaultAllowedGroups array Default allowed groups humhub\libs\BasePermission
$defaultState string humhub\modules\admin\components\BaseAdminPermission
$description string Description of the permission humhub\libs\BasePermission
$fixedGroups array Default fixed groups humhub\libs\BasePermission
$id string Id of the permission (default is classname) humhub\libs\BasePermission
$moduleId string Module id which belongs to the permission humhub\modules\admin\components\BaseAdminPermission
$title string Title of the permission humhub\libs\BasePermission

Public Methods

Hide inherited methods

MethodDescriptionDefined By
canChangeState() Checks if permission state can be changed humhub\libs\BasePermission
getDefaultState() {@inheritdoc} humhub\modules\admin\components\BaseAdminPermission
getDescription() Returns the description humhub\libs\BasePermission
getId() Returns the ID humhub\libs\BasePermission
getLabelForState() Returns the label for given State humhub\libs\BasePermission
getModuleId() Returns the module id humhub\libs\BasePermission
getTitle() Returns the title humhub\libs\BasePermission
hasId() Checks the given id belongs to this permission humhub\libs\BasePermission
init() humhub\modules\admin\components\BaseAdminPermission

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getConfiguredState() Returns the default state set in the configration params 'defaultPermissions'. humhub\libs\BasePermission

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
STATE_ALLOW 1 humhub\libs\BasePermission
STATE_DEFAULT '' Permission States humhub\libs\BasePermission
STATE_DENY 0 humhub\libs\BasePermission

Property Details

$defaultState protected property
protected string $defaultState self::STATE_DENY
$moduleId protected property

Module id which belongs to the permission

protected string $moduleId 'admin'

Method Details

getDefaultState() public method

{@inheritdoc}

Note: that this function always returns state self::STATE_ALLOW for the administration group, this behaviour can't be overwritten by means of the configuration.

Thi

public \humhub\modules\admin\components\type getDefaultState ( $groupId )
$groupId \humhub\modules\admin\components\type
init() public method

public void init ( )