new global perm to grant ro access on all project
This commit is contained in:
parent
81df233d5a
commit
203dc89db0
4 changed files with 69 additions and 12 deletions
30
permissions/migrations/0004_auto_20140830_2318.py
Normal file
30
permissions/migrations/0004_auto_20140830_2318.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('permissions', '0003_auto_20140830_2304'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='globalpermission',
|
||||
name='access_project',
|
||||
field=models.BooleanField(default=False),
|
||||
preserve_default=True,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='globalpermission',
|
||||
name='create_comment',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='globalpermission',
|
||||
name='create_issue',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
|
@ -96,12 +96,14 @@ class GlobalPermission(PermissionModel):
|
|||
|
||||
# Project permissions, given on ALL projects
|
||||
|
||||
create_issue = models.BooleanField(default=True)
|
||||
access_project = models.BooleanField(default=False)
|
||||
|
||||
create_issue = models.BooleanField(default=False)
|
||||
modify_issue = models.BooleanField(default=False)
|
||||
manage_issue = models.BooleanField(default=False)
|
||||
delete_issue = models.BooleanField(default=False)
|
||||
|
||||
create_comment = models.BooleanField(default=True)
|
||||
create_comment = models.BooleanField(default=False)
|
||||
modify_comment = models.BooleanField(default=False)
|
||||
delete_comment = models.BooleanField(default=False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue