[Fusionforge-commits] r15681 - branches/Branch_5_2/src/www/frs

Olivier Meunier musicoliv at fusionforge.org
Thu Jun 7 18:36:10 CEST 2012


Author: musicoliv
Date: 2012-06-07 18:36:09 +0200 (Thu, 07 Jun 2012)
New Revision: 15681

Modified:
   branches/Branch_5_2/src/www/frs/download.php
Log:
Remove old-style download rights checking in frs as it is already done by RBAC

Modified: branches/Branch_5_2/src/www/frs/download.php
===================================================================
--- branches/Branch_5_2/src/www/frs/download.php	2012-06-07 11:25:36 UTC (rev 15680)
+++ branches/Branch_5_2/src/www/frs/download.php	2012-06-07 16:36:09 UTC (rev 15681)
@@ -45,12 +45,6 @@
 		session_redirect404();
 	}
 
-	if ($GLOBALS['sys_block_anonymous_downloads']) {
-		if (!session_loggedin()) {
-			exit_permission_denied();
-		}
-	}
-
 	header('Content-disposition: attachment; filename="'.str_replace('"', '', $filename).'"');
 	header("Content-type: application/binary");
 	$length = filesize($filepath);




More information about the Fusionforge-commits mailing list