- allow supermaintainers AND maintainers to edit app version

- remove redundant permission check when editting notes
This commit is contained in:
Jonathan Ernst
2005-02-14 18:22:38 +00:00
committed by WineHQ
parent f5e76d5d48
commit d90433899a
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ if(!is_numeric($_REQUEST['appId']) OR !is_numeric($_REQUEST['versionId']))
}
/* Check for admin privs */
if(!($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($_REQUEST['appId'],$_REQUEST['versionId'])))
if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintainer($_REQUEST['versionId']) && !isSuperMaintainer($_REQUEST['appId']))
{
errorpage("Insufficient Privileges!");
exit;