Block users to the node/add page for not allowed languages

Created on 6 February 2020, about 5 years ago
Updated 27 November 2024, 4 months ago

For some reasons in my current project, the node/add page has different dependencies to the current language.

Because of that, I need to block the users to access the node/add page if they don't have the allowed language for the language interface that they are at that moment.

So, if they have 'en' and 'es' as allowed languages the behavior should be:

/en/node/add/{content_type} -> 200
/es/node/add/{content_type} -> 200
/fr/node/add/{content_type} -> 403
/de/node/add/{content_type} -> 403

Of course if they have permission to create that type of content.

Maybe this is an edge case and I'm not so sure if this patch should go to the module or not. Or maybe we need a setting in the module to be able to decide if this should work like this or as it working with the module now. Any feedback would be appreciated.

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇪🇸Spain jjcarrion Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024