Remove isMaintainer() and isSuperMaintainer and instead use the user

classes is_maintainer() and is_super_maintainer.
This commit is contained in:
Chris Morgan
2004-12-19 19:30:27 +00:00
committed by WineHQ
parent ddbd9ed0cc
commit 77a038d4f9
10 changed files with 41 additions and 40 deletions

View File

@@ -64,7 +64,7 @@ function view_app_comment($ob)
echo "</td></tr>\n";
// delete message button, for admins
if(havepriv("admin") || isMaintainer($ob->appId, $ob->versionId))
if(havepriv("admin") || $_SESSION['current']->is_maintainer($ob->appId, $ob->versionId))
{
echo "<tr>";
echo "<td><form method=\"post\" name=\"message\" action=\"".$apidb_root."deletecomment.php\"><input type=submit value='Delete' class=button>\n";