Passed
Push — main ( 5593c7...37a38c )
by Jochen
04:43 queued 18s
created

byceps.permissions.news   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 28
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 0
1
"""
2
byceps.permissions.news
3
~~~~~~~~~~~~~~~~~~~~~~~
4
5
:Copyright: 2006-2021 Jochen Kupperschmidt
6
:License: Revised BSD (see `LICENSE` file for details)
7
"""
8
9 1
from ..util.authorization import create_permission_enum
10
11
12 1
NewsChannelPermission = create_permission_enum(
13
    'news_channel',
14
    [
15
        'create',
16
    ],
17
)
18
19
20 1
NewsItemPermission = create_permission_enum(
21
    'news_item',
22
    [
23
        'create',
24
        'publish',
25
        'update',
26
        'view',
27
        'view_draft',
28
    ],
29
)
30