diff --git a/client/text_ugc.py b/client/text_ugc.py index 5880024de..c030dec0d 100644 --- a/client/text_ugc.py +++ b/client/text_ugc.py @@ -240,16 +240,6 @@ def _ugc_votes(entropy_client, options): ) return 1 - username = webserv.get_credentials() - if username is None: - print_info( - "[%s] %s" % ( - darkgreen(repository), - blue(_("Not logged in, please login first.")), - ) - ) - return 0 - rc = 0 if cmd == "get": @@ -269,6 +259,16 @@ def _ugc_votes(entropy_client, options): elif cmd == "add": + username = webserv.get_credentials() + if username is None: + print_info( + "[%s] %s" % ( + darkgreen(repository), + blue(_("Not logged in, please login first.")), + ) + ) + return 0 + print_info(" %s [%s] %s" % ( bold("@@"), purple(pkgkey),