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

[Translations] Possibility to control visibility of XLIFF and Word export in perspectives #3793

Open
Corepex opened this Issue Jan 2, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Corepex
Copy link

Corepex commented Jan 2, 2019

Bug Report

Expected behavior

hide XLIFF Export/Import and Microsoft® Word Export in Settings->translations

Actual behavior

the two toolbar items are shown

Steps to reproduce

add the following code (code example) to a perspective (app\conifg\perspectives.php)
give the user the permission: Translations

Code example

"toolbar" => [
    ...
    "extras" => [
        "items" => [
            "translations" => [
                "items" => [
                    "xliffExportImport" => false,
                    "microsoftWordExport" => false,
                    
                    //also tried
                    "pimcore_xliff" => false, //pimcoreadmin\js\pimcore\settings\translation\xliff.js
                    "wordExport" => false,  //pimcoreadmin\js\pimcore\layout\toolbar.js
                ],
            ],
        ],
    ],
    ...
],
@brusch

This comment has been minimized.

Copy link
Member

brusch commented Jan 9, 2019

Currently this is not possible, see:

if (user.isAllowed("translations") && perspectiveCfg.inToolbar("extras.translations")) {

@brusch brusch changed the title Cant void xliffExportImport and microsoftWordExport in Toolbar [Translations] Possibility to control visibility of XLIFF and Word export in perspectives Jan 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment