[BUGFIX] Init permissions in context menu 52/51852/2
authorSusanne Moog <susanne.moog@typo3.com>
Sat, 25 Feb 2017 13:31:15 +0000 (14:31 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 25 Feb 2017 17:55:34 +0000 (18:55 +0100)
The current user permissions were not initialized
for the context menu resulting in non-existing
permissions for editors (and no possibility to copy
a page).

Change-Id: I8fe747a1f19b4bea794b7fdbd676e7f366eea695
Resolves: #80019
Releases: master
Reviewed-on: https://review.typo3.org/51852
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Steffen Frese
Tested-by: Steffen Frese
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/RecordProvider.php

index 2ce8607..2a8c3b4 100644 (file)
@@ -167,6 +167,7 @@ class RecordProvider extends AbstractProvider
     {
         parent::initialize();
         $this->record = BackendUtility::getRecordWSOL($this->table, $this->identifier);
+        $this->initPermissions();
     }
 
     /**