diff --git a/tailbone/views/employees.py b/tailbone/views/employees.py index b9e2c90c..faed01c5 100644 --- a/tailbone/views/employees.py +++ b/tailbone/views/employees.py @@ -113,12 +113,12 @@ class EmployeesView(MasterView): def editable_instance(self, employee): if self.rattail_config.demo(): - return not bool(employee.user and employee.username == 'chuck') + return not bool(employee.user and employee.user.username == 'chuck') return True def deletable_instance(self, employee): if self.rattail_config.demo(): - return not bool(employee.user and employee.username == 'chuck') + return not bool(employee.user and employee.user.username == 'chuck') return True def _preconfigure_fieldset(self, fs):