[TYPO3-core] [REMINDER: RFC: incorrect clearCache menu can be generated for non-admin user]

Dmitry Dulepov dima at spamcop.net
Tue Apr 18 12:43:42 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

This is a reminder for non-critical bug in the core that prevents
non-core modules from showing "clear cache" menu to users.

This bug holds one bug in TemplaVoila.

Dmitry.

- -------- Original Message --------
Subject: [TYPO3-core] RFC: incorrect clearCache menu can be generated
for	non-admin user
Date: Mon, 10 Apr 2006 21:38:43 +0300
From: Dmitry Dulepov <dima at spamcop.net>
Reply-To: TYPO3 core team <typo3-team-core at lists.netfielders.de>
To: TYPO3 core team <typo3-team-core at lists.netfielders.de>

Hello!

This is a CVS patch request.

Type: bug

See: http://bugs.typo3.org/view.php?id=3218 and
http://bugs.typo3.org/view.php?id=3226

Branch: HEAD & TYPO3_4-0

Description: function template::clearCacheCmd() accepts two parameters:
page id ($id) and a flag to add save options ($addSaveOptions -- bad mix
of functionality in my opinion!). Everywhere except templavoila this
function is called with $addSaveOptions=true. This causes correct save
and clear cache menu to be generated. However if function is called with
$addSaveOptions=false and $id != 0 and current user is not admin,
function does not produce anything, though it must produce code to clear
cache for the current page.

Solution: correct one "if" in the function (see attached patch).

This bug affects templavoila, patch is verified in my test environment.

Dmitry.


- --
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFERMLeRVcYnKJ8N6kRAjIMAJ4yBaW1pZGfT5ZY1z4WfBEq2xstTQCcCzTM
+NzayNjMz+MlyGB+OlK+AlE=
=CSyB
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clear_cache_this_page.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060418/d9fa513c/attachment.txt 


More information about the TYPO3-team-core mailing list