[TYPO3-core] RFC 15258: Creating multiple pages doesn't consider the group permissions for all pages
Lorenz Ulrich
lorenz-typo3 at visol.ch
Fri Jul 30 21:51:38 CEST 2010
Hi everyone,
This is an SVN patch request.
Type: Bug
Bugtracker references:
http://bugs.typo3.org/view.php?id=15258
Branches:
TYPO3_4-2, TYPO3_4-3, TYPO3_4-4, Trunk
Problem:
At creating multiple pages with the wizard the defined group permissions
for pages (defined by TSConfig) is only considered on the first created
page.
Solution:
With a lot of help from Steffen Kamper I was able to track down the
problem to class.t3lib_tcemain.php.
The method t3lib_BEfunc::getTSCpid is called from TCEmain in line 837.
The third parameter is expected to be an integer ($pid), but
$old_pid_value (set in l. 695) is a string (NEW0). As the $old_pid_value
is not set in the first run, the first created page has correct rights
while all the other pages don't have any rights set.
As $fieldArray['pid'] always delivers a valid pid, the patch removes the
condition that prefers the $old_pid_value.
Best regards,
Lorenz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15258.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100730/5339352c/attachment.txt>
More information about the TYPO3-team-core
mailing list