Merge pull request #14126 from OPEN-DSI/fix-import-upload-file

FIX upload file in import module
This commit is contained in:
Laurent Destailleur 2020-06-28 21:13:00 +02:00 committed by GitHub
commit df7996a8eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,10 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
} elseif ($feature == 'cheque')
{
if (!$user->rights->banque->cheque) { $createok = 0; $nbko++; }
} elseif (!empty($feature2)) // This is for permissions on one level
} elseif ($feature == 'import') {
if (!$user->rights->import->run) { $createok = 0; $nbko++; }
}
elseif (!empty($feature2)) // This is for permissions on one level
{
foreach ($feature2 as $subfeature)
{