From b697140a20dfbd90685e77d56286cd38d04642b7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 May 2005 21:02:05 +0000 Subject: [PATCH] r133: If the user has the CANEDITATTACH flag set, then he or she can download attachments too --- viewattachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewattachment.php b/viewattachment.php index ffac1df..0a6d1d6 100755 --- a/viewattachment.php +++ b/viewattachment.php @@ -21,7 +21,7 @@ if (!$attachment) exit; } -if (!can_perform('cangetattach')) +if (!can_perform('cangetattach') OR !can_perform('caneditattach')) { echo 'alert: no permission'; exit; -- 2.22.5