mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-12-24 13:02:37 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55557d1b2d |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -45,3 +45,4 @@ test.py
|
||||
.history/
|
||||
.test/
|
||||
*.mo
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user