Err, d'oh, based it on master instead of pu, so doesn't apply to pu. On 22/06, Johannes Löthberg via aur-dev wrote:
Commit 6ec4a3589 forgot to change the usages of the display_account_form and process_account_form function to account for the new parameter, and forgot to add the new column to aur-schema.sql.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> --- Accidentally broke editing account details. It took me way too long to figure this out..
schema/aur-schema.sql | 1 + web/html/account.php | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/schema/aur-schema.sql b/schema/aur-schema.sql index 0804ac3..4c495ea 100644 --- a/schema/aur-schema.sql +++ b/schema/aur-schema.sql @@ -40,6 +40,7 @@ CREATE TABLE Users ( RegistrationTS TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, CommentNotify TINYINT(1) NOT NULL DEFAULT 1, UpdateNotify TINYINT(1) NOT NULL DEFAULT 0, + OwnershipNotify TINYINT(1) NOT NULL DEFAULT 1, PRIMARY KEY (ID), UNIQUE (Username), UNIQUE (Email), diff --git a/web/html/account.php b/web/html/account.php index 9007ace..c77aedb 100644 --- a/web/html/account.php +++ b/web/html/account.php @@ -36,7 +36,7 @@ if ($action == "UpdateAccount") { in_request("C"), in_request("R"), in_request("L"), in_request("I"), in_request("K"), in_request("PK"), in_request("J"), in_request("CN"), in_request("UN"), - in_request("ID"), $row["Username"]); + in_request("ON"), in_request("ID"), $row["Username"]); } }
@@ -83,7 +83,8 @@ if (isset($_COOKIE["AURSID"])) { $row["HideEmail"], "", "", $row["RealName"], $row["LangPreference"], $row["IRCNick"], $row["PGPKey"], $PK, $row["InactivityTS"] ? 1 : 0, $row["CommentNotify"], - $row["UpdateNotify"], $row["ID"], $row["Username"]); + $row["UpdateNotify"], $row["OwnershipNotify"], + $row["ID"], $row["Username"]); } else { print __("You do not have permission to edit this account."); } @@ -124,7 +125,8 @@ if (isset($_COOKIE["AURSID"])) { in_request("I"), in_request("K"), in_request("PK"), in_request("J"), in_request("CN"), in_request("UN"), - in_request("ID"), $row["Username"]); + in_request("ON"), in_request("ID"), + $row["Username"]); }
} else { -- 2.9.0
-- Sincerely, Johannes Löthberg PGP Key ID: 0x50FB9B273A9D0BB5 https://theos.kyriasis.com/~kyrias/