[TYPO3-core] RFC 15090: Bug: login with a BE User somewhere else on the page tree

Fabien Udriot fudriot at omic.ch
Thu Jul 22 12:22:19 CEST 2010


Thanks Jigal for this explanation!

 > Notice: that the -1 value will still select foreign_table records for selectox boxes only from
 > root (pid=0)

True, I have noticed that too.

I have put a v3 enhanced with your comment.


On 7/22/10 9:39 AM, Jigal van Hemert wrote:
> Xavier Perseguers wrote:
>> - "-1" should not be proposed as the documentation says:
>
> In the Core API it says for rootLevel:
> ---------------------
> rootLevel
>
> [0, 1, -1]
>
> Determines where a record may exist in the page tree. There are three options depending on the value:
>
> 1. 0 (false): Can only exist in the page tree. Records from this table must belong to a page (have a
> positive "pid" field value). Thus records cannot be created in the root of the page tree (where
> "admin" users are the only ones allowed to create records anyways).
> 2. 1 (true): Can only exist in the root.Records must have a "pid"-field value equal to zero. The
> consequence is that only admin can edit this record.
> 3. -1: Can exist in both page tree and root.Records can belong either to a page (positive "pid"
> field value) or exist in the root of the page tree (where the "pid" field value will be 0 (zero))
> Notice: that the -1 value will still select foreign_table records for selectox boxes only from root
> (pid=0)
>
> Notice: The setting for "rootLevel" is ignored for records in the "pages" table (they are hardcoded
> to be allowed anywhere, equal to a "-1" setting of rootLevel)
> --------------------
>
> Although it mentions TRUE and FALSE the -1 value is already documented with a meaning.
>
> [1]
> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2517078
>
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15090_v3.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100722/7a11c580/attachment.txt>


More information about the TYPO3-team-core mailing list