mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
wip: UI refactoring
* Per object permissions * Faster identities listing * Possibility to filter on alias names * fixes see #204
This commit is contained in:
@@ -32,6 +32,8 @@ def inc_limit(user, lname):
|
||||
pass
|
||||
|
||||
def dec_limit(user, lname):
|
||||
if user is None:
|
||||
return
|
||||
try:
|
||||
user.limitspool.dec_curvalue(lname)
|
||||
except LimitsPool.DoesNotExist:
|
||||
@@ -96,7 +98,6 @@ def dec_nb_mailboxes(mailboxes):
|
||||
for mailbox in mailboxes:
|
||||
owner = get_object_owner(mailbox)
|
||||
dec_limit(owner, 'mailboxes_limit')
|
||||
# FIXME: Gestion des alias ici
|
||||
|
||||
@events.observe('MailboxAliasCreated')
|
||||
def inc_nb_mbaliases(user, mailboxalias):
|
||||
|
||||
Reference in New Issue
Block a user