Allow supermaintainers to edit notes

This commit is contained in:
Jonathan Ernst
2005-02-19 01:23:02 +00:00
committed by WineHQ
parent 412d4756fe
commit b103c6651d
2 changed files with 7 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ if(!is_numeric($_REQUEST['noteId']))
$oNote = new Note($_REQUEST['noteId']);
/* Check for privs */
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !isSuperMaintainer($oNote->iAppId))
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($oNote->iVersionId) && !$_SESSION['current']->isSuperMaintainer($oNote->iAppId))
{
errorpage("Insufficient Privileges!");
exit;