From a681f2275e9d594c2ce58a40c4761ca046b5e6e2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 May 2005 16:56:28 +0000 Subject: [PATCH] r180: The OR should be an AND in the permission checking expression --- viewattachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewattachment.php b/viewattachment.php index 8543af6..c7c4bd0 100755 --- a/viewattachment.php +++ b/viewattachment.php @@ -20,7 +20,7 @@ if (!$attachment) $message->error('alert: bad attachment'); } -if (!can_perform('cangetattach') OR !can_perform('caneditattach')) +if (!can_perform('cangetattach') AND !can_perform('caneditattach')) { $message->error_permission(); } -- 2.22.5