https://src.bluestatic.org
/
bugdar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d63dfb
)
r180: The OR should be an AND in the permission checking expression
author
Robert Sesek <rsesek@bluestatic.org>
Sat, 21 May 2005 16:56:28 +0000
(16:56 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Sat, 21 May 2005 16:56:28 +0000
(16:56 +0000)
viewattachment.php
patch
|
blob
|
history
diff --git
a/viewattachment.php
b/viewattachment.php
index 8543af67687ee59d5a5bb67a1a13277c4d2a80cd..c7c4bd016fa2ca89b97b96f3a0a0eaa33ba53e17 100755
(executable)
--- 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();
}