1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Introduced per-role decryption permissions

This commit is contained in:
Jeremy Stretch
2016-04-07 12:37:09 -04:00
parent 8a39f254ad
commit 2cb99c6012
3 changed files with 55 additions and 22 deletions

View File

@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-04-07 15:48
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0007_alter_validators_add_error_messages'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('secrets', '0003_auto_20160321_1524'),
]
operations = [
migrations.AlterModelOptions(
name='secret',
options={'ordering': ['device', 'role', 'name']},
),
migrations.AddField(
model_name='secretrole',
name='groups',
field=models.ManyToManyField(blank=True, related_name='secretroles', to='auth.Group'),
),
migrations.AddField(
model_name='secretrole',
name='users',
field=models.ManyToManyField(blank=True, related_name='secretroles', to=settings.AUTH_USER_MODEL),
),
]