From f36d487d4e7ab9307fb37c556830aa28f564d160 Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Jun 27 2017 16:22:26 +0000 Subject: allow getUserPerm accepting None arg --- diff --git a/hub/kojihub.py b/hub/kojihub.py index b86da43..4bdf569 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -10601,7 +10601,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'])