Make maintainers able to delete comments again

This commit is contained in:
Paul van Schayck
2005-01-10 22:25:14 +00:00
committed by WineHQ
parent dfec5cb9b0
commit cb2a1f1971

View File

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