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 2018/01/09 15:03:45 UTC

[kibble] branch master updated: also fix wrong name here, oops

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 dcbdf42  also fix wrong name here, oops
dcbdf42 is described below

commit dcbdf424cadde829b8881cb5e21a45b86c209c16
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Jan 9 16:03:38 2018 +0100

    also fix wrong name here, oops
---
 api/pages/org/members.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/pages/org/members.py b/api/pages/org/members.py
index 9db90fd..3b58852 100644
--- a/api/pages/org/members.py
+++ b/api/pages/org/members.py
@@ -127,7 +127,7 @@ def canInvite(session):
         return True
     
     dOrg = session.user['defaultOrganisation'] or "apache"
-    if session.DB.ES.exists(index=session.DB.dbname, doc_type="org", id= dOrg):
+    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>'].