use assertPerm() so admins will inherit the permission

This commit is contained in:
Mike Bonnet 2009-09-28 14:42:18 -04:00
parent 78e9e65ddf
commit e04395e7f3

View file

@ -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