That is exactly what i've tried as specified in my above post. But i'm still getting same error.
That is not what you are showing in the above post. You have the no permission going on after the template is evaled, not before.
Quote:
Originally Posted by nirvana43
BTW is there any way i can permit guests also on same page.
Sure, by not putting in that line. The code says 'if there is no userid, then give them a no permission page'. If you don't want that to happen, why do you have it in your code?