system/modules/DocumentManagementSystem/classes/pojos/Category.php
public function isAccessibleForCurrentMember($strAccessRight)
	{
		if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN)
		{
			return true;
		}
		else if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_CUSTOM && FE_USER_LOGGED_IN)
		{
			$blnIsAccessible = false;
			$arrMemberGroups = deserialize(\FrontendUser::getInstance()->groups);
			if (!empty($arrMemberGroups))
			{
				foreach($this->arrAccessRights as $accessRight)
				{
					if ($accessRight->isActive() && in_array($accessRight->memberGroup, $arrMemberGroups))
					{
						$blnIsAccessible = $blnIsAccessible || $accessRight->$strAccessRight;
					}
				}
			}
			return $blnIsAccessible;
		}
		else if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->isAccessibleForCurrentMember($strAccessRight);
		}
		return false;
	}
public function isAccessibleForCurrentMember($strAccessRight)
	{
		if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN)
		{
			return true;
		}
		else if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_CUSTOM && FE_USER_LOGGED_IN)
		{
			$blnIsAccessible = false;
			$arrMemberGroups = deserialize(\FrontendUser::getInstance()->groups);
			if (!empty($arrMemberGroups))
			{
				foreach($this->arrAccessRights as $accessRight)
				{
					if ($accessRight->isActive() && in_array($accessRight->memberGroup, $arrMemberGroups))
					{
						$blnIsAccessible = $blnIsAccessible || $accessRight->$strAccessRight;
					}
				}
			}
			return $blnIsAccessible;
		}
		else if ($this->generalManagePermission == self::GENERAL_MANAGE_PERMISSION_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->isAccessibleForCurrentMember($strAccessRight);
		}
		return false;
	}
public function isAccessibleForCurrentMember ( $ strAccessRight ) { if ( $ this -> generalManagePermission == self :: GENERAL_MANAGE_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN ) { return true ; } else if ( $ this -> generalManagePermission == self :: GENERAL_MANAGE_PERMISSION_CUSTOM && FE_USER_LOGGED_IN ) { $ blnIsAccessible = false ; $ arrMemberGroups = deserialize ( \ FrontendUser :: getInstance ( ) -> groups ) ; if ( ! empty ( $ arrMemberGroups ) ) { foreach ( $ this -> arrAccessRights as $ accessRight ) { if ( $ accessRight -> isActive ( ) && in_array ( $ accessRight -> memberGroup , $ arrMemberGroups ) ) { $ blnIsAccessible = $ blnIsAccessible || $ accessRight -> $ strAccessRight ; } } } return $ blnIsAccessible ; } else if ( $ this -> generalManagePermission == self :: GENERAL_MANAGE_PERMISSION_INHERIT && $ this -> hasParentCategory ( ) ) { return $ this -> parentCategory -> isAccessibleForCurrentMember ( $ strAccessRight ) ; } return false ; }
Return if the current logged member has access with the given right to this category.

@param	string	$strAccessRight	The name of the right.
@return	bool	True if the current logged member has access with the given right to this category.
Return if the current logged member has access with the given right to this category .