From eabfb4d8665ffbda5a599395628903b252bdbffd Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sun, 13 Feb 2005 23:45:15 +0000 Subject: [PATCH] Allow supermaintainers and maintainers to edit app notes --- admin/editAppNote.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/editAppNote.php b/admin/editAppNote.php index 51d3f23..4f01240 100644 --- a/admin/editAppNote.php +++ b/admin/editAppNote.php @@ -18,7 +18,7 @@ if(!is_numeric($_REQUEST['noteId'])) $oNote = new Note($_REQUEST['noteId']); /* Check for privs */ -if(!$_SESSION['current']->isLoggedIn() || (!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iAppId,$oNote->iVersionId)) ) +if(!$_SESSION['current']->isLoggedIn() || (!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !isSuperMaintainer($oNote->iAppId)) ) { errorpage("Insufficient Privileges!"); exit;