Skip to content
Permalink
Browse files

improve sorting

  • Loading branch information...
alnv committed May 10, 2019
1 parent 927b873 commit 832d40cb74e32e58ef0e56a58cb30e080a8f64c8
Showing with 6 additions and 2 deletions.
  1. +1 −1 config/config.php
  2. +5 −1 library/alnv/DcPermission.php
@@ -1,6 +1,6 @@
<?php
define( "CATALOG_MANAGER_VERSION", " 1.31.beta.2" );
define( "CATALOG_MANAGER_VERSION", " 1.31.beta.3" );
array_insert( $GLOBALS['BE_MOD'], 3, [
@@ -260,7 +260,11 @@ private function getRoot( $strTable, $strFieldname, $strType ) {
private function checkAccessAndGetRoot( $strTable, $strFieldname, $strFieldPermissions, $strType ) {
$arrRoot = $this->getRoot( $strTable, $strFieldname, $strType );
$GLOBALS['TL_DCA'][$strTable]['list']['sorting']['root'] = $arrRoot;
if ( $strType != 'default' ) {
$GLOBALS['TL_DCA'][$strTable]['list']['sorting']['root'] = $arrRoot;
}
if ( !$this->User->hasAccess( 'create', $strFieldPermissions ) ) {

0 comments on commit 832d40c

Please sign in to comment.
You can’t perform that action at this time.