mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fix #744
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0002_delete_extension'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='master_user',
|
||||
field=models.BooleanField(default=False, verbose_name='Allow mailboxes access'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
@@ -49,6 +49,12 @@ class User(PermissionsMixin):
|
||||
is_active = models.BooleanField(default=True)
|
||||
date_joined = models.DateTimeField(default=timezone.now)
|
||||
is_local = models.BooleanField(default=True)
|
||||
master_user = models.BooleanField(
|
||||
ugettext_lazy("Allow mailboxes access"), default=False,
|
||||
help_text=ugettext_lazy(
|
||||
"Allow this administrator to access user mailboxes"
|
||||
)
|
||||
)
|
||||
password = models.CharField(ugettext_lazy('password'), max_length=256)
|
||||
last_login = models.DateTimeField(
|
||||
ugettext_lazy('last login'), default=timezone.now
|
||||
|
||||
Reference in New Issue
Block a user