Skip to content

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

Description

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

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions