ensure that every task has an owner (already enforced at the database level)

This commit is contained in:
Mike Bonnet 2007-08-20 16:29:43 -04:00
parent fec67b4f93
commit eb362b4e3e

View file

@ -401,7 +401,7 @@ def make_task(method,arglist,**opts):
#calling function should enforce channel limitations, if applicable
opts['channel_id'] = get_channel_id(opts['channel'],strict=True)
if not context.session.logged_in:
opts['owner'] = None
raise koji.GenericError, 'task must have an owner'
else:
opts['owner'] = context.session.user_id
opts['label'] = None