[TYPO3-dev] RE : Re: felogin VS custom extension

Bernd Wilke t3ng at pi-phi.tk
Wed Oct 5 08:04:20 CEST 2011


On Tue, 04 Oct 2011 23:16:26 -0400, Éric Thibault wrote:

> Yes thanks for the input.  But as there will be several 'admin contents'
> mingled with 'for all contents' in a single description sheet for one
> product, I was aiming at producing only one template in my extension and
> show or hide informations based on the login info... I was not thinking
> about cutting the presentation into smaller bits of content... so can I
> access a session variable that could tell me if a user has the right to
> view my 'admin contents'?

you can access the whole fe_user record with:
	$GLOBALS['TSFE']->fe_user->user
you can look whether the user is member of your admin-group, you might 
configure in typoscript. 

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html




More information about the TYPO3-dev mailing list