In views/user submission-form.php
please put a check user login
before session start()
to end of form
put the entire code under
if ( is_user_logged_in() )
{
}
else
{
echo “Please Log-in to Post”;
}
it works
please let me know, whether it solved ur problem or not.
Regards
Ajay