diff --git a/geruecht/routes.py b/geruecht/routes.py index 96dc57e..a79e402 100644 --- a/geruecht/routes.py +++ b/geruecht/routes.py @@ -107,7 +107,8 @@ def _getLifeTime(**kwargs): if 'accToken' in kwargs: accToken = kwargs['accToken'] debug.debug("accessToken is {{ {} }}".format(accToken)) - retVal = {"value": accToken.lifetime} + retVal = {"value": accToken.lifetime, + "group": accToken.user.toJSON()['group']} debug.info( "return get lifetime from accesstoken {{ {} }}".format(retVal)) return jsonify(retVal) @@ -132,7 +133,8 @@ def _saveLifeTime(**kwargs): accToken.lifetime = lifetime debug.info("update accesstoken timestamp") accToken.updateTimestamp() - retVal = {"value": accToken.lifetime} + retVal = {"value": accToken.lifetime, + "group": accToken.user.toJSON()['group']} debug.info( "return save lifetime for accessToken {{ {} }}".format(retVal)) return jsonify(retVal)