From ebd04e524faeb16ab1fb9c3122f5e66238955e44 Mon Sep 17 00:00:00 2001 From: cuihaikuo Date: Sat, 12 May 2018 15:46:36 +0800 Subject: [PATCH] Return whether user is in descendants groups by default in is_group_user(). --- python/seaserv/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/seaserv/api.py b/python/seaserv/api.py index dd7e2cf..ef9c401 100644 --- a/python/seaserv/api.py +++ b/python/seaserv/api.py @@ -960,9 +960,10 @@ class CcnetAPI(object): def remove_group_user(self, username): return ccnet_threaded_rpc.remove_group_user(username) - def is_group_user(self, group_id, user, in_structure=False): + def is_group_user(self, group_id, user, in_structure=True): """ Return non-zero value if true, 0 if not true + If @in_structure is true, return whether user is in descendants groups and @group_id it self """ return ccnet_threaded_rpc.is_group_user(group_id, user, 1 if in_structure else 0)