Skip Navigation

[Resolved] restricting access

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 7 replies, has 2 voices.

Last updated by Jane 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2098009

Is there a way to restrict access to a edit post link (created using layouts) ?

I know how to restrict the access to the edit button on the post. As well as the content and form on the new URL.

But how do you restrict access to the actual URL ?

I use access to set restrictions to the post type. But I want the "edit post link" to have different restrictions for different roles, so I don't want it visible at all to other users.

Is there a way to accomplish this ? There are no settings in Access for unassigned layouts.

#2098187

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jane,

Thank you for getting in touch.

Do you have our Access plugin installed? With this you are able to restrict the access of the post to allow the users to only edit their own posts.

Perhaps you can use this setting to avoid users being able to edit other user's posts.

Thanks,
Shane

#2098249

Shane, that's not what I said.

YES I'm using your Access plugin ....... The issue is the URL is visible to anyone who knows the URL, even if the form is only visible to the author. I want the URL only visible to the author not everyone.

example A
hidden link
everyone has access to this

example B
hidden link
only author has access to this

#2098279

Let me reword it.

I want webpage example B to be only available for author. As there is NO setting available to do that with your Access Plugin.

#2098323

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jane,

Thank you for the clarity. I was under the impression that you were using conditional tags to hide the button to access the form.

In this case no there isn't a way to hide the URL.

Given that the page itself is dynamically generated we won't be able to redirect users to another page if they try to access it without having the correct permissions.

Thanks,
Shane

#2098363

Yes I'm using conditional tags to hide the button to access the form. (That is not the issue).

If someone who does not have permission (or search engines) figures out the URL for example B, I want them to be redirected back to example A.

Looks like my only option is to use conditional tags around a js redirect on the edit layout template. Unless you have a better idea.

#2098403

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jane,

Unfortunately no I do not.

However your JS redirect is actually quite a smart solution that I didnt think of. Essentially you're going to check if a particular content displays and if it does then you redirect the user using Javascript correct?

This should serve as a suitable solution given that we don't have any inhouse.

Thanks,
Shane

#2102315

My issue is resolved now. Thank you!