From b005888374707f01174f941ea653f34063e89dad Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 20 Aug 2006 23:49:41 +0000 Subject: [PATCH] r1107: It helps if you get the name of the permissions checking function right --- attachment.php | 2 +- editcomment.php | 2 +- editreport.php | 2 +- favorite.php | 2 +- showhistory.php | 2 +- viewattachment.php | 2 +- vote.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/attachment.php b/attachment.php index e866184..9303412 100755 --- a/attachment.php +++ b/attachment.php @@ -51,7 +51,7 @@ if (!$bug) $message->error($lang->getlex('error_invalid_id')); } -if (!check_bug_permission($bug)) +if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/editcomment.php b/editcomment.php index ce5934d..1a81a5b 100644 --- a/editcomment.php +++ b/editcomment.php @@ -42,7 +42,7 @@ $comment =& $commentapi->objdata; $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = $comment[bugid]"); -if (!check_bug_permission($bug)) +if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/editreport.php b/editreport.php index 7aac0d8..4dbbbb4 100644 --- a/editreport.php +++ b/editreport.php @@ -47,7 +47,7 @@ if (!$bug) $message->error($lang->getlex('error_invalid_id')); } -if (!check_bug_permission($bug)) +if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/favorite.php b/favorite.php index 3cf06de..194b243 100644 --- a/favorite.php +++ b/favorite.php @@ -41,7 +41,7 @@ if ($_REQUEST['do'] == 'handle') { $bugsys->input_clean('bugid', TYPE_UINT); $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . $bugsys->in['bugid']); - if (!check_bug_permission($bug)) + if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/showhistory.php b/showhistory.php index 0e9a9cf..b0017c7 100644 --- a/showhistory.php +++ b/showhistory.php @@ -37,7 +37,7 @@ if (!$bug) $message->error($lang->getlex('error_invalid_id')); } -if (!check_bug_permission($bug)) +if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/viewattachment.php b/viewattachment.php index e9e9537..70df0fc 100755 --- a/viewattachment.php +++ b/viewattachment.php @@ -34,7 +34,7 @@ if (!$attachment) } $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = $attachment[bugid]"); -if (!check_bug_permission($bug)) +if (!check_bug_permissions($bug)) { $message->error_permission(); } diff --git a/vote.php b/vote.php index 901b167..6105872 100644 --- a/vote.php +++ b/vote.php @@ -39,7 +39,7 @@ if ($_REQUEST['do'] == 'vote') $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . $bugsys->input_clean('bugid', TYPE_UINT)); $vote = $db->query_first("SELECT *, FIND_IN_SET(" . $bugsys->userinfo['userid'] . ", userids) AS uservote FROM " . TABLE_PREFIX . "vote WHERE bugid = $bug[bugid]"); - if (!check_bug_permission($bug)) + if (!check_bug_permissions($bug)) { $message->error_permission(); } -- 2.22.5