sonata-project/SonataAdminBundle — pull request #651 by pulzarraider (2012-03-31 21:40:14+00:00)
Title: [BUGFIX] Export to different file formats can't be turned off or limited

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Fixes the following tickets: -
Todo: -

This PR fixes these problems:

- Export data to different file formats can be limited/changed with method ```getExportFormats()``` but even if it is used, the export is still possible, when user change the url parameter ```...&format=FILE_FORMAT``` to some other value. This is also security issue.

- Export data can't be turned off setting empty array or false in method ```getExportFormats()```. The export is still available with the URL parameter ```...&format=```. This is also security issue.

- Label ```Export``` is still visible, even if no file export is enabled.