From e871192f40ee5c72473a3f98551f02472e85ca6d Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Jul 06 2017 16:06:53 +0000 Subject: allow getUserPerm accepting None arg --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 9cbba19..7a8f1f9 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -10597,7 +10597,7 @@ class RootExports(object): """Get a list of the permissions granted to the currently logged-in user.""" return context.session.getPerms() - def getUserPerms(self, userID): + def getUserPerms(self, userID=None): """Get a list of the permissions granted to the user with the given ID.""" user_info = get_user(userID, strict=True) return koji.auth.get_user_perms(user_info['id'])