Commit 6448387a authored by Robert Ricci's avatar Robert Ricci
Browse files

Only look at the 'swappable' setting if an admin - otherwise, it

thinks mere users are trying to set their swappable bit to off. Since
it wasn't displayed on the mere-user form, it isn't in the form data
sent back, so it looks like they're turning it off.
parent 6a086dbc
......@@ -361,8 +361,8 @@ else {
# Swappable
if (!isset($formfields[swappable]) ||
strcmp($formfields[swappable], "1")) {
if (ISADMIN($uid) && (!isset($formfields[swappable]) ||
strcmp($formfields[swappable], "1"))) {
$formfields[swappable] = 0;
if (!isset($formfields[noswap_reason]) ||
Supports Markdown
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