Fixing PHP bug
Redirecting to user page if there is no access to dashboard and public profile.
Changes