Skip Navigation

[Resolved] Custom user role can login to website and should’t

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by georgiI 1 day, 2 hours ago.

Assisted by: Minesh.

Author
Posts
#2818075
3.PNG

Hi,
I'm having an issue. I've made custom user role - organization and they can register and edit own user data. I've made a custom post type and fields that they can fill and submit for an organization profile(this is the custom post type).
However now, the users can login to the backend of the website and they shouldm't have access to it.

How do i make them behave like in a online shop - they make an account, where they can access and edit their data and do not see the backend of the website, but still produce their profile with my post form?

#2818196

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolser offers courses I suggest you should go for Toolset courses:
- https://toolset.com/course/

Especially the membership site course:
- https://toolset.com/course/wordpress-membership-sites/

However, you will have to use the Toolset Access plugin in order to specify the permissions for post types who should able to access and what capabilities the user should have:
- https://toolset.com/course-lesson/setting-access-control/

#2818377

I followed the lessons and still i had an issue.
I figured it out - when i accessed the user's profile trough admin panel, there was a checkbox:
"Toolbar > Show Toolbar when viewing site". Once I turned it off, the access to the website stopped.

Is this a functionality of wp or can this be checked off by default when making users per role?

#2818401

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That checkbox is seems to be from WP.

I'm not sure how exactly you created the custom role. The custom role you should create with Toolset Access and add new role and use copy from "Subscriber" to copy subscriber capabilites.

#2818446

I did that and it does not work.
I'll find another way.