original_string: protected function getDirName($dirName = null)
      {
          /*
           * Only the active theme can be managed without this permission
           */
          if ($dirName && !$this->user->hasAccess('cms.manage_themes')) {
              $dirName = null;
          }
  
          if ($dirName === null) {
              $dirName = CmsTheme::getActiveThemeCode();
          }
  
          return $dirName;
      }
code: protected function getDirName($dirName = null)
      {
          /*
           * Only the active theme can be managed without this permission
           */
          if ($dirName && !$this->user->hasAccess('cms.manage_themes')) {
              $dirName = null;
          }
  
          if ($dirName === null) {
              $dirName = CmsTheme::getActiveThemeCode();
          }
  
          return $dirName;
      }
code_tokens: protected function getDirName ( $ dirName = null ) { /*
           * Only the active theme can be managed without this permission
           */ if ( $ dirName && ! $ this -> user -> hasAccess ( 'cms.manage_themes' ) ) { $ dirName = null ; } if ( $ dirName === null ) { $ dirName = CmsTheme :: getActiveThemeCode ( ) ; } return $ dirName ; }
docstring: Default to the active theme if user doesn't have access to manage all themes
docstring_tokens: Default to the active theme if user doesn t have access to manage all themes