Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug with modifying staff.

  • Loading branch information...
commit 745c6b4c6b4cfbbd69d821af296056f52df73246 1 parent 777fabd
@aceat64 aceat64 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  manage.py
View
2  manage.py
@@ -160,7 +160,7 @@ def manage(self, path_split):
if self.formdata['rights'] in ['0', '1', '2']:
action_taken = True
if not ':' in self.formdata['username']:
- UpdateDb("UPDATE `staff` SET `username` = '" + _mysql.escape_string(self.formdata['username']) + "', `rights` = " + self.formdata['rights'] + " LIMIT 1")
+ UpdateDb("UPDATE `staff` SET `username` = '" + _mysql.escape_string(self.formdata['username']) + "', `rights` = " + self.formdata['rights'] + " WHERE `id` = " + member['id'] + " LIMIT 1")
page += 'Staff member updated.'
logAction(staff_account['username'], 'Updated staff account for ' + self.formdata['username'])
else:
Please sign in to comment.
Something went wrong with that request. Please try again.