When displaying a content type only show one of two fields depending on user logged in?

93 views Asked by At

Using Orchard 1.6...I have setup a form to display from the front end, displaying content type 'Booking', which displays a hyperlink field 'Book Now'.

If the user is logged in it takes them to the booking page, if not the Access Denied/register page appears(when the hyperlink is clicked) with error: Cannot create content. Anonymous users do not have Submit_PodAvailability permission.

This is OK but I want to tidy it up. Is it possible to check if the user is logged in when the original form loads...if they are show the hyperlink 'Book' and if they are not, instead show the hyperlink 'Login to Book'

0

There are 0 answers