r133: If the user has the CANEDITATTACH flag set, then he or she can download attachm...
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 14 May 2005 21:02:05 +0000 (21:02 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 14 May 2005 21:02:05 +0000 (21:02 +0000)
viewattachment.php

index ffac1df9ca2724605a8a08f7d21c6345e77d18df..0a6d1d6cb28f0c97af924157c35bb6e4bb8b79ed 100755 (executable)
@@ -21,7 +21,7 @@ if (!$attachment)
        exit;
 }
 
-if (!can_perform('cangetattach'))
+if (!can_perform('cangetattach') OR !can_perform('caneditattach'))
 {
        echo 'alert: no permission';
        exit;