Skip Navigation

[Resolved] WPML all languages shows the Add new post link, but gives permission denied

This support ticket is created 7 years 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.

Our next available supporter will start replying to tickets in about 6.81 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#581887
Screen Shot 2017-10-25 at 11.00.16.png
Screen Shot 2017-10-25 at 11.00.07.png
Screen Shot 2017-10-25 at 10.59.56.png
Screen Shot 2017-10-25 at 10.59.45.png
Screen Shot 2017-10-25 at 10.59.27.png

I am trying to:
----------------------
I am trying to allow users to manage only certain languages.
In Access I created a WPML group for each language, I added users to these groups.
When a user selects all languages in the admin bar it shows the "Add new" link for posts, which is correct since his language is part of all languages.

Click on the Add new link

I expected to see:

A clean new post form where I can only select the language(s) I have access to.

Instead, I got:

Sorry, you are not allowed to access this page.

As soon as I switch back to the language I own I can access that page again.

So 2 possible options:

1. Allow access to the new post page when you are view the admin using "All languages"
2. Don't show the add new option when all languages is selected

#582044

Hi, I'll try to respond to your suggestions here. I'm able to replicate this behavior in a specific case. If the current User does not have access to the WPML Group for the 1st language in the list of all available languages, then I'm shown the Access message. Can you confirm - if the current user has access to the English WPML Group, they are automatically directed to the English post editor as expected?

1. Allow access to the new post page when you are view the admin using "All languages"
I don't think it is likely we will allow a user to visit the New Post screen with "All Languages" selected, because we require a language to be selected to create a post. This is the reason why the language switcher defaults to the first option and "All Languages" is not an option on this screen. If the user does not have access to that first language, then he or she is shown the error message.

2. Don't show the add new option when all languages is selected
This does seem like a usability issue to me, especially if the current User does not have access to create posts in the first language selection. Let me reach out to my 2nd tier support team to see if this is the expected behavior, or if this is something we could take on as a feature request. Please stand by and I will update you with any information I receive.

#584270

Hi, our development team has noted the issue and will discuss improvements to this feature during an upcoming development cycle for Access. I can keep you posted here as work progresses, but I do not have a timeline available yet.