system/modules/DocumentManagementSystem/classes/pojos/Category.php
public function isReadableForCurrentMember()
	{
		if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_ALL)
		{
			return true;
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN)
		{
			return true;
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_CUSTOM && FE_USER_LOGGED_IN)
		{
			return $this->isAccessibleForCurrentMember(\AccessRight::READ);
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->isReadableForCurrentMember();
		}
		return false;
	}
public function isReadableForCurrentMember()
	{
		if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_ALL)
		{
			return true;
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN)
		{
			return true;
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_CUSTOM && FE_USER_LOGGED_IN)
		{
			return $this->isAccessibleForCurrentMember(\AccessRight::READ);
		}
		else if ($this->generalReadPermission == self::GENERAL_READ_PERMISSION_INHERIT && $this->hasParentCategory())
		{
			return $this->parentCategory->isReadableForCurrentMember();
		}
		return false;
	}
public function isReadableForCurrentMember ( ) { if ( $ this -> generalReadPermission == self :: GENERAL_READ_PERMISSION_ALL ) { return true ; } else if ( $ this -> generalReadPermission == self :: GENERAL_READ_PERMISSION_LOGGED_USER && FE_USER_LOGGED_IN ) { return true ; } else if ( $ this -> generalReadPermission == self :: GENERAL_READ_PERMISSION_CUSTOM && FE_USER_LOGGED_IN ) { return $ this -> isAccessibleForCurrentMember ( \ AccessRight :: READ ) ; } else if ( $ this -> generalReadPermission == self :: GENERAL_READ_PERMISSION_INHERIT && $ this -> hasParentCategory ( ) ) { return $ this -> parentCategory -> isReadableForCurrentMember ( ) ; } return false ; }
Return if this category is readable for the current logged member.

@return	bool	True if this category is readable for the current logged member.
Return if this category is readable for the current logged member .