Created a "helper" to check if there's a user currently logged in when going to /creategamead.
If no user is present, redirects to /login - can be reused for other pages where we want the same restriction.
Test the restriction by trying to access /creategamead without being logged in, should redirect to /login.
Login and then try again and hopefully you should see the form for creating a gameAd.
Mock-User that you can use for testing:
username: erraberra
pw: 12345678
Test the restriction by trying to access /creategamead without being logged in, should redirect to /login. Login and then try again and hopefully you should see the form for creating a gameAd.
Mock-User that you can use for testing: username: erraberra pw: 12345678