I’m building an application that will store mountaineering accidents.
In the home page I have a button that says “Enter a new accident”.
My goal is that only registered users will be able to enter new records.
So, if the user is not signed-up or logged-in, when he clicks the button, I’d like to prompt him with a message like “You have to login or signup to be able to enter a new accident”. Otherwise, if he’s already logged in, by clicking the button he will be brought to the proper page.
Many thanks in advance.