Permalink
Browse files

Fixed a bug with modifying staff.

  • Loading branch information...
1 parent 777fabd commit 745c6b4c6b4cfbbd69d821af296056f52df73246 @aceat64 aceat64 committed Mar 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 manage.py
View
@@ -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:

0 comments on commit 745c6b4

Please sign in to comment.