|
@@ -3,12 +3,6 @@ from misago.acl.models import Role
|
|
from misago.core import forms
|
|
from misago.core import forms
|
|
|
|
|
|
|
|
|
|
-DEFAULT_PERMISSIONS = {
|
|
|
|
- 'can_destroy_user_newer_than': 0,
|
|
|
|
- 'can_destroy_users_with_less_posts_than': 0,
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
"""
|
|
"""
|
|
Admin Permissions Form
|
|
Admin Permissions Form
|
|
"""
|
|
"""
|
|
@@ -17,11 +11,13 @@ class PermissionsForm(forms.Form):
|
|
can_destroy_user_newer_than = forms.IntegerField(
|
|
can_destroy_user_newer_than = forms.IntegerField(
|
|
label=_("Maximum age of destroyed account (in days)"),
|
|
label=_("Maximum age of destroyed account (in days)"),
|
|
help_text=_("Enter zero to disable this check."),
|
|
help_text=_("Enter zero to disable this check."),
|
|
- min_value=0)
|
|
|
|
|
|
+ min_value=0,
|
|
|
|
+ initial=0)
|
|
can_destroy_users_with_less_posts_than = forms.IntegerField(
|
|
can_destroy_users_with_less_posts_than = forms.IntegerField(
|
|
label=_("Maximum number of posts on destroyed account"),
|
|
label=_("Maximum number of posts on destroyed account"),
|
|
help_text=_("Enter zero to disable this check."),
|
|
help_text=_("Enter zero to disable this check."),
|
|
- min_value=0)
|
|
|
|
|
|
+ min_value=0,
|
|
|
|
+ initial=0)
|
|
|
|
|
|
|
|
|
|
def change_permissions_form(role):
|
|
def change_permissions_form(role):
|