From b7d9fef8daf30c3696afefbff275f41d4aac73ed Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Thu, 12 Sep 2019 11:28:30 +0200
Subject: [PATCH] =?UTF-8?q?Utilisation=20du=20privil=C3=A8ge=20de=20t?=
 =?UTF-8?q?=C3=A9l=C3=A9chargement=20et=20non=20de=20t=C3=A9l=C3=A9verseme?=
 =?UTF-8?q?nt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Application/Provider/Privilege/FichierPrivileges.php    | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/module/Application/src/Application/Provider/Privilege/FichierPrivileges.php b/module/Application/src/Application/Provider/Privilege/FichierPrivileges.php
index 76d6d60ed..0bd9e0a31 100644
--- a/module/Application/src/Application/Provider/Privilege/FichierPrivileges.php
+++ b/module/Application/src/Application/Provider/Privilege/FichierPrivileges.php
@@ -91,11 +91,7 @@ class FichierPrivileges extends Privileges
 
             case NatureFichier::CODE_THESE_PDF:
             case NatureFichier::CODE_FICHIER_NON_PDF:
-                //
-                return $versionFichier !== null && $versionFichier->estVersionCorrigee() ?
-                    ThesePrivileges::THESE_DEPOT_VERSION_CORRIGEE :
-                    ThesePrivileges::THESE_DEPOT_VERSION_INITIALE;
-
+                return ThesePrivileges::THESE_TELECHARGEMENT_FICHIER;
             case NatureFichier::CODE_DIVERS:
                 //
                 return self::FICHIER_DIVERS_TELECHARGER;
-- 
GitLab