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;