[BUGFIX] Show "add pages" button to qualified users only 29/43629/4
authorDaniel Goerz <ervaude@gmail.com>
Tue, 29 Sep 2015 16:10:03 +0000 (18:10 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 30 Sep 2015 14:47:57 +0000 (16:47 +0200)
commit7f6698489747795aeb523673e96c9f194cfd03fe
tree94a83175e2b4695a4f47b1ce9994c2005aa22d97
parenta167e6c328f5183e6206ca866c5c8c1e61ec86a8
[BUGFIX] Show "add pages" button to qualified users only

If an editor has no rights to create new pages of any type the
icon for showing the document toolbar for the drag'n drop
adding is shown nevertheless.

This patch changes this behavior. The icon is only shown
after the AJAX call returns at least one allowed doktype.

Change-Id: I35050e4cfe923b58c26d85ce39a69dc69aa58515
Resolves: #26901
Releases: master
Reviewed-on: http://review.typo3.org/43629
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeDataProvider.php
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/toppanel.js