diff --git a/preferences/migrations/0049_optionaluser_self_change_shell.py b/preferences/migrations/0049_optionaluser_self_change_shell.py new file mode 100644 index 00000000..161792eb --- /dev/null +++ b/preferences/migrations/0049_optionaluser_self_change_shell.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-08-13 17:18 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('preferences', '0048_auto_20180811_1515'), + ] + + operations = [ + migrations.AddField( + model_name='optionaluser', + name='self_change_shell', + field=models.BooleanField(default=False, help_text='Users can change their shell'), + ), + ] diff --git a/preferences/models.py b/preferences/models.py index ed4cd1e0..0ebb2fec 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -85,6 +85,10 @@ class OptionalUser(AclMixin, PreferencesModel): blank=True, null=True ) + self_change_shell = models.BooleanField( + default=False, + help_text="Users can change their shell" + ) local_email_accounts_enabled = models.BooleanField( default=False, help_text="Enable local email accounts for users" diff --git a/preferences/templates/preferences/display_preferences.html b/preferences/templates/preferences/display_preferences.html index 2e34db5a..a7ada02b 100644 --- a/preferences/templates/preferences/display_preferences.html +++ b/preferences/templates/preferences/display_preferences.html @@ -45,10 +45,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,