diff options
| -rw-r--r-- | ishtar/furnitures/backend.py | 3 | ||||
| -rw-r--r-- | ishtar/furnitures/forms.py | 2 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/ishtar/furnitures/backend.py b/ishtar/furnitures/backend.py index d7d3384a8..ae77d8610 100644 --- a/ishtar/furnitures/backend.py +++ b/ishtar/furnitures/backend.py @@ -51,6 +51,9 @@ class ObjectOwnPermBackend(object):              assert perm.split('.')[-1].split('_')[1] == 'own'          except (IndexError, AssertionError):              return False +        if ishtar_user.person.person_type \ +           == models.PersonType.objects.get(txt_idx="administrator"): +            return True          if obj is None:              model_name = perm.split('_')[-1].capitalize()              if not hasattr(models, model_name): diff --git a/ishtar/furnitures/forms.py b/ishtar/furnitures/forms.py index d2bd36794..82bfcb88e 100644 --- a/ishtar/furnitures/forms.py +++ b/ishtar/furnitures/forms.py @@ -567,7 +567,7 @@ class FinalAccountForm(forms.Form):      final = True      form_label = _("Confirm")      send_password = forms.BooleanField(label=_(u"Send the new password by " -                                               u"email?")) +                                               u"email?"), required=False)      def __init__(self, *args, **kwargs):          self.is_hidden = True | 
