[TYPO3-core] RFC #11212: Turning off the admin-panel results in error
Oliver Hader
oliver at typo3.org
Tue Aug 25 19:08:05 CEST 2009
Hi Rupert,
Rupert Germann schrieb:
> Hi,
>
> this is a SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=11212
>
> Branches: Trunk
>
> user writes:
> Turning off the admin-panel (it's a 'admin' BE-user with adminPanel = 0
> in the user's TS-config) results in error when using the Web->View:
>
> Fatal error: Call to a member function display() on a non-object in
> /var/www/typo3-svn-semantic/t3lib/class.t3lib_tsfebeuserauth.php on line
> 251
>
> Solution:
> add the missing check for $BE_USER->extAdmEnabled before trying to call
> methods from the adminPanel object
>
> Remarks:
> the same error happens when the adminPanel is enabled in config and a
> non admin user is logged in which has no adminPanel settings in his userTS.
I was able to reproduce this with
| TypoScript: config.admPanel = 1
| and
| User TSconfig: admPanel >
However, I moved the check to t3lib_tsfebeuserauth (see attached patch).
+1 on reading and testing
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list