use assertPerm() so admins will inherit the permission
This commit is contained in:
parent
78e9e65ddf
commit
e04395e7f3
1 changed files with 1 additions and 3 deletions
|
|
@ -4707,9 +4707,7 @@ class RootExports(object):
|
|||
Create a live CD image using a kickstart file and group package list.
|
||||
"""
|
||||
|
||||
if not context.session.hasPerm('livecd'):
|
||||
raise koji.ActionNotAllowed, \
|
||||
'You must have the "livecd" permission to run this task!'
|
||||
context.session.assertPerm('livecd')
|
||||
|
||||
taskOpts = {}
|
||||
taskOpts['arch'] = arch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue