Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Optionally restrict allowed filenames to user groups #78

Open
h-e-l-l-o-w-o-r-l-d opened this issue Apr 10, 2024 · 0 comments

Comments

@h-e-l-l-o-w-o-r-l-d
Copy link

h-e-l-l-o-w-o-r-l-d commented Apr 10, 2024

Hi,

we recently switched from LFEditor to translate_locallang because of the killer-feature "allowedFiles" (for non-admins). :-)

We have a multidomain-environment with editors working independently of each other, so we created different files for different users. Right now all editors can edit all allowed files, so I would like to optionally restrict these files to a certain user group.

Example:

# cat=basic//8; type=string; label=Allowed filenames for non-admin users (comma separated, empty=all)
allowedFiles = locallang_users_1.xlf,locallang_users_2.xlf,locallang_users_3.xlf

# cat=basic//x; type=string; label=Restrict allowedFiles via user groups (comma separated, empty=no restriction). The values are processed in the same order as the values under "allowedFiles".
allowedFilesUserGroups = 23,,64

Result:

locallang_users_1.xlf -> restrict to users with group 23
locallang_users_2.xlf -> no restriction
locallang_users_3.xlf -> restrict to users with group 64

Would that be possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant