I have an intranet site which is only accessible to registered users and which uses the xtemplate theme. My problem is that xtemplate's secondary links, which contain taxonomy_dhtml links, are accessible even if the user hasn't logged in yet.

An easy solution would be to 'wrap' the secondary links HTML in an authentication check, in such a way that the secondary links are only displayed when the user has successfully logged in. Can this be done?

TIA, Lieven

Comments

bali’s picture

I've solved the 'problem' by transforming the referenced pages to PHP pages and using

global $user;
if ($user->uid) {
}

to validate authentication of the user.