diff --git a/core/migrations/0011_alter_perms_options.py b/core/migrations/0011_alter_perms_options.py new file mode 100644 index 0000000..837f9ac --- /dev/null +++ b/core/migrations/0011_alter_perms_options.py @@ -0,0 +1,17 @@ +# Generated by Django 4.1.3 on 2022-11-29 12:04 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0010_alter_perms_options'), + ] + + operations = [ + migrations.AlterModelOptions( + name='perms', + options={'permissions': (('bypass_hashing', 'Can bypass field hashing'), ('bypass_blacklist', 'Can bypass the blacklist'), ('bypass_encryption', 'Can bypass field encryption'), ('bypass_obfuscation', 'Can bypass field obfuscation'), ('bypass_delay', 'Can bypass data delay'), ('bypass_randomisation', 'Can bypass data randomisation'), ('post_irc', 'Can post to IRC'), ('post_discord', 'Can post to Discord'), ('query_search', 'Can search with query strings'), ('use_insights', 'Can use the Insights page'), ('index_internal', 'Can use the internal index'), ('index_meta', 'Can use the meta index'), ('index_restricted', 'Can use the restricted index'), ('restricted_sources', 'Can access restricted sources'))}, + ), + ] diff --git a/core/models.py b/core/models.py index 665169f..d5fd569 100644 --- a/core/models.py +++ b/core/models.py @@ -117,7 +117,8 @@ class Perms(models.Model): ("post_discord", "Can post to Discord"), ("query_search", "Can search with query strings"), # ("use_insights", "Can use the Insights page"), - ("index_int", "Can use the internal index"), + ("index_internal", "Can use the internal index"), ("index_meta", "Can use the meta index"), + ("index_restricted", "Can use the restricted index"), ("restricted_sources", "Can access restricted sources"), )