[TYPO3-core] another FE editing issue
Michael Stucki
michael at typo3.org
Sat Mar 25 18:15:23 CET 2006
Hi Martin,
> The edit panel and edit icons were always shown. With or without access
> rights to the language. I hide them now when the user has no rights.
>
> At the top of this methods I've added $BE_USER->checkLanguageAccess()
>
> tslib_cObj->editPanel()
> tslib_cObj->editIcons()
>
> Note that I check with sys_language_uid (also for the admin panel). Should
> I have used sys_language_content?
I don't think so. Leave it as it is.
A note besides that: Even if those "one-liners" are often small things, they
can still contain very harmful changes.
In any case, please always send a patch to this list, so we can review it
easily. Thanks!
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list