From 259fe11634dccff7b90466cb0422affc0939cb9e Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Wed, 3 Aug 2022 16:18:43 +0200 Subject: [PATCH] Add title --- htdocs/ftp/index.php | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/htdocs/ftp/index.php b/htdocs/ftp/index.php index ccbc7d6a0df..4df7e1512a6 100644 --- a/htdocs/ftp/index.php +++ b/htdocs/ftp/index.php @@ -622,16 +622,18 @@ if (!function_exists('ftp_connect')) { print ''; print ""; - - print '
'; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; - print '
'; + if ($user->hasRight('ftp', 'write')) { + print load_fiche_titre($langs->trans("AttachANewFile"), null, null); + print '
'; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print '
'; + } } else { $foundsetup = false; $MAXFTP = 20;