[TYPO3-dev] Checking for access restrictions on page

Christian Lerrahn typo3 at penpal4u.net
Mon Aug 11 10:13:21 CEST 2008


On Sun, 10 Aug 2008 23:30:57 +0300
"Dmitry Dulepov [typo3]" <dmitry at typo3.org> wrote:

> Christian Lerrahn wrote:
> > Hi,
> > what is the officially correct way of checking the FE access
> > restrictions of a certain page? I need to be able to pick a page id
> > (or record for that matter) and then find out if the currently
> > logged in FE user is allowed to access it or not. I tried
> > checkPageGroupAccess() but it only checks the current record and
> > not if any restrictions are inherited. Is there any function that
> > does the check along with traversing the page tree to find
> > inherited restrictions?
> 
> It depends on where you trying to get these permissions: in FE or in
> BE.
> 

I need them in the FE. Sorry, I didn't think of a scenario where I need
the FE access in the BE but obviously scenarios like this exist... :)

Cheers,
Christian




More information about the TYPO3-dev mailing list