-
Notifications
You must be signed in to change notification settings - Fork 6
/
acl.yaml
147 lines (144 loc) · 2.76 KB
/
acl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
available: &AVAILABLE
acls:
- age
- gender
- membership
- group
- country
- city
- user_type
- spoken_language
- image
- has_webcam
- fake_checked
- owner
- admin
- room_owner
- moderator
- superuser
- crossroom
- samechannel
- sameroom
- disallow
- custom
validation:
gender:
type: "str_in_csv"
value: "##db##"
default: "m,w,p,tv,ts,ftm,mtf"
membership:
type: "str_in_csv"
value: "##db##"
default: "normal,premium,vip,tg,tg_p"
samechannel:
type: "samechannel"
sameroom:
type: "sameroom"
disallow:
type: "disallow"
age:
type: "range"
group:
type: "str_in_csv"
user_type:
type: "str_in_csv"
country:
type: "str_in_csv"
city:
type: "str_in_csv"
spoken_language:
type: "csv_in_csv"
image:
type: "str_in_csv"
value: "y,n"
has_webcam:
type: "str_in_csv"
value: "y,n"
fake_checked:
type: "str_in_csv"
value: "y,n"
owner:
type: "str_in_csv" # TODO: change to room_owner and channel_owner, doesn't work as expected now
value: "y,n"
room_owner:
type: "is_room_owner"
admin:
type: "is_admin"
moderator:
type: "str_in_csv" # TODO: how?
value: "y,n"
superuser:
type: "is_super_user"
custom:
type: "custom"
channel:
list:
<<: *AVAILABLE
create:
<<: *AVAILABLE
message:
<<: *AVAILABLE
exclude:
- crossroom
- samechannel
crossroom:
<<: *AVAILABLE
whisper:
acls:
- disallow
setacl:
acls:
- owner
- admin
- superuser
ban:
acls:
- owner
- admin
- superuser
room:
join:
<<: *AVAILABLE
exclude:
- crossroom
- samechannel
autojoin:
<<: *AVAILABLE
exclude:
- crossroom
- samechannel
list:
<<: *AVAILABLE
exclude:
- crossroom
- samechannel
history:
<<: *AVAILABLE
exclude:
- crossroom
message:
<<: *AVAILABLE
exclude:
- crossroom
- samechannel
crossroom:
<<: *AVAILABLE
setacl:
acls:
- owner
- admin
- superuser
kick:
acls:
- owner
- room_owner
- disallow
- moderator
- admin
- superuser
ban:
acls:
- owner
- disallow
- admin
- superuser