code: public function showJsLibraryHint()
  	{
  		if ($_POST || Contao\Input::get('act') != 'edit')
  		{
  			return;
  		}
  
  		// Return if the user cannot access the layout module (see #6190)
  		if (!$this->User->hasAccess('themes', 'modules') || !$this->User->hasAccess('layout', 'themes'))
  		{
  			return;
  		}
  	}
docs: Show a hint if a JavaScript library needs to be included in the page layout