Jump to content

Help with restricting user to only his front end profile page


Flashmaster82
 Share

Recommended Posts

Im building a site where members can hopefullly sign up, login, and have a front end user page that that they can edit and also post new for example entries/pages to an auction for example.

I have created an alternative user page based on this post.

https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users

So my new template is "member" with the parent "members". This is where all my new user will end up but they will also have a parent under the regular users page.

I have created a form from "frontedituser" module. So now the users can signup and login from localhost/userarea/logga-in. But the problem is that once the user is logged in they also can access other users pages with the parent home/medlemmar/..  I want only the logged in user to be able to visit the users profile page.. home/medlemmar/testuser1 for example.

 

I have also tried to get you an overview of everything in the attached image. If you have any clues or have some other/better solutions please let me know.. /thanks.

memberss.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...