You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/11/30 12:40:14 UTC
[kibble] branch master updated: wrong DB type!
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git
The following commit(s) were added to refs/heads/master by this push:
new b666866 wrong DB type!
b666866 is described below
commit b666866b677833417d3fc3643ce304fa23d290ce
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Nov 30 13:40:05 2017 +0100
wrong DB type!
this should be the full name, organisation.
---
api/pages/sources.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/pages/sources.py b/api/pages/sources.py
index 30c33c1..0d08ea7 100644
--- a/api/pages/sources.py
+++ b/api/pages/sources.py
@@ -137,8 +137,8 @@ def canModifySource(session):
return True
dOrg = session.user['defaultOrganisation'] or "apache"
- if session.DB.ES.exists(index=session.DB.dbname, doc_type="org", id= dOrg):
- xorg = session.DB.ES.get(index=session.DB.dbname, doc_type="org", id= dOrg)['_source']
+ if session.DB.ES.exists(index=session.DB.dbname, doc_type="organisation", id= dOrg):
+ xorg = session.DB.ES.get(index=session.DB.dbname, doc_type="organisation", id= dOrg)['_source']
if session.user['email'] in xorg['admins']:
return True
--
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].