From c6f610ef3c4f586d8f535f2a30e29c310bb9b125 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Wed, 24 Feb 2010 20:34:32 +0100
Subject: [PATCH] Send 403 instead of 401 in fetch.php FS#1904

---
 lib/exe/fetch.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index 81a8903c9..968ee9436 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -176,7 +176,7 @@ function checkFileStatus(&$media, &$file) {
 
     //check permissions (namespace only)
     if(auth_quickaclcheck(getNS($media).':X') < AUTH_READ){
-      return array( 401, 'Unauthorized' );
+      return array( 403, 'Forbidden' );
     }
     $file  = mediaFN($media);
   }
-- 
GitLab