Allow supermaintainers and maintainers to edit app notes

This commit is contained in:
Jonathan Ernst
2005-02-13 23:45:15 +00:00
committed by WineHQ
parent 124868c0a0
commit eabfb4d866

View File

@@ -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;