From 35a7c4a1222abaca583e9f15a049e3f83723db03 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 15 2024 15:11:02 +0000 Subject: stop suggesting that users need repo permission regen-repo allows (only) newRepo repo allows this, but also repo state management. It is only for kojira. The current acl error reads: koji.ActionNotAllowed: repo permission required This prompts users to request the wrong permission --- diff --git a/kojihub/kojihub.py b/kojihub/kojihub.py index d060484..a408491 100644 --- a/kojihub/kojihub.py +++ b/kojihub/kojihub.py @@ -13281,10 +13281,10 @@ class RootExports(object): def newRepo(self, tag, event=None, src=False, debuginfo=False, separate_src=False): """Create a newRepo task. returns task id""" - if context.session.hasPerm('regen-repo'): + if context.session.hasPerm('repo'): pass else: - context.session.assertPerm('repo') + context.session.assertPerm('regen-repo') # raise error when tag does not exist get_tag(tag, strict=True, event=event) opts = {}