I have a custom VisualForce page for Viewing items in a particular Object, I would like however the view to be only be shown for Portal users, for all other users it should display the normal SF pages.
I have found a solution already but it feels quite 'hackish' because when non portal users view it they are shown the development page for the visual page very breifly before being redirected to the normal SF view page. This is the code if it makes more sense:
<apex:page standardController="News__c" action="{!if($Profile.Name =='Customer Portal', null,
urlFor($Action.News__c.View, News__c.Id, null, true))}">