Rename GROUP permission to ADMIN
Rename GROUP permission to ADMIN to allow ADMIN message recipients to accept any Control: header
This commit is contained in:
parent
92adc15c27
commit
862794c8f5
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ insert into server_permission values
|
||||||
(1, 'READ'),
|
(1, 'READ'),
|
||||||
(2, 'POST'),
|
(2, 'POST'),
|
||||||
(3, 'KILL'),
|
(3, 'KILL'),
|
||||||
(4, 'GROUP');
|
(4, 'ADMIN');
|
||||||
|
|
||||||
create table server_user (
|
create table server_user (
|
||||||
id INTEGER PRIMARY KEY NOT NULL,
|
id INTEGER PRIMARY KEY NOT NULL,
|
||||||
|
|
|
@ -8,14 +8,14 @@ class UserPermission(enum.Flag):
|
||||||
READ = 1
|
READ = 1
|
||||||
POST = enum.auto()
|
POST = enum.auto()
|
||||||
KILL = enum.auto()
|
KILL = enum.auto()
|
||||||
GROUP = enum.auto()
|
ADMIN = enum.auto()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return {
|
return {
|
||||||
1: 'READ',
|
1: 'READ',
|
||||||
2: 'POST',
|
2: 'POST',
|
||||||
3: 'KILL',
|
3: 'KILL',
|
||||||
4: 'GROUP'
|
4: 'ADMIN'
|
||||||
}[self.value]
|
}[self.value]
|
||||||
|
|
||||||
class User(DatabaseTable):
|
class User(DatabaseTable):
|
||||||
|
|
Loading…
Add table
Reference in a new issue