From 3c85bbcaed38bff1d950da5874ab5a813c3a93cd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 30 2016 20:42:52 +0000 Subject: Use the proper list of allowed prefix --- diff --git a/files/load_from_disk.py b/files/load_from_disk.py index 34827ac..24f79d3 100644 --- a/files/load_from_disk.py +++ b/files/load_from_disk.py @@ -96,7 +96,7 @@ def main(folder, debug=False): 'ALLOWED_PREFIX'] + [grp for grp in user_obj.groups] first_part, _, second_part = name.partition('/') - if second_part and first_part not in pagure.APP.config['ALLOWED_PREFIX']: + if second_part and first_part not in allowed_prefix: raise pagure.exceptions.PagureException( 'The prefix of you project must be in the list of allowed ' 'prefix set by the admins of this pagure instance, or the name '