Compare commits

..

1 Commits
v4.1 ... v4.1.0

Author SHA1 Message Date
Bai
55557d1b2d ignore 2024-08-21 17:49:10 +08:00
3 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View File

@@ -45,3 +45,4 @@ test.py
.history/
.test/
*.mo

View File

@@ -190,8 +190,7 @@ class ES(object):
mappings['aliases'] = {
self.query_index: {}
}
if self.es.indices.exists(index=self.index):
return
try:
self.es.indices.create(index=self.index, body=mappings)
except (RequestError, BadRequestError) as e:

View File

@@ -30,7 +30,6 @@ system_user_perms = (
('authentication', 'temptoken', 'add,change,view', 'temptoken'),
('authentication', 'accesskey', '*', '*'),
('authentication', 'passkey', '*', '*'),
('authentication', 'sshkey', '*', '*'),
('tickets', 'ticket', 'view', 'ticket'),
)
system_user_perms += (user_perms + _view_all_joined_org_perms)