Commit ab120cd1 authored by Leigh Stoller's avatar Leigh Stoller

Remove GENIRACK conditional for toggling user admin status.

parent 5ad0ec3d
......@@ -671,7 +671,7 @@ class User
}
function Show($html = FALSE) {
global $WIKISUPPORT, $GENIRACK;
global $WIKISUPPORT;
$user = $this;
......@@ -846,13 +846,12 @@ class User
<td>Administrator:</td>
<td>$admintag";
if ($GENIRACK) {
$adminflip = ($admin ? 0 : 1);
$toggle_url = CreateURL("toggle", $user, "type", "adminflag",
"value", $adminflip);
$adminflip = ($admin ? 0 : 1);
$toggle_url = CreateURL("toggle", $user, "type", "adminflag",
"value", $adminflip);
echo " (<a href='$toggle_url'>Toggle</a>)";
}
echo " (<em>Be very careful with this</em> ".
"<a href='$toggle_url'>Toggle</a>)";
echo "</td>
</tr>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment