Re: find out if page is public
Peter Zechmeister <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <1204117942.3109.54.camel@peterz-desktop> |
Ok. I found it. hasPublicAccess is my friend. Regards PeterZ Am Mittwoch, den 27.02.2008, 13:27 +0100 schrieb Peter Zechmeister: > Hi, > > I am looking for a function which tells me if a page is public or > restricted. > > attr_dc_accessrights_restricted is not what I am looking for, because > it > considers only the page where it is set and not the sub-pages. > > hasAccess does not do the job either, because it just tells if the > authenticated user has access. > > I need a more general function which is independent of the logged in > user. I.e. to put a "This is a public place" - sign on each public > page > or to tell a cache to store a public page (with no authenticated users > - > elements) thought somebody is logged in. > > Regards > PeterZ > > -- > "My theory about this "l33t speak" is that some people realized they > were unable to use their own language properly, and discovered that > they > were able to disguise their errors that way." > Ashe Claymore > http://forums.winamp.com/showthread.php?postid=204379 > > > > > -- "My theory about this "l33t speak" is that some people realized they were unable to use their own language properly, and discovered that they were able to disguise their errors that way." Ashe Claymore http://forums.winamp.com/showthread.php?postid=204379