From 32ff900c68b45fc9dae21952494e334a6f54881b Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Tue, 17 Oct 2006 16:10:41 +0000 Subject: now checks must return the error message --- lib/Youri/Submit/Check/ACL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Youri/Submit/Check/ACL.pm b/lib/Youri/Submit/Check/ACL.pm index 1719c36..cec8f0e 100644 --- a/lib/Youri/Submit/Check/ACL.pm +++ b/lib/Youri/Submit/Check/ACL.pm @@ -40,7 +40,7 @@ sub run { my ($arch, $media, $r, $users) = @$acl; next if $arch !~ $a || $srpm !~ $r || $media !~ $media; if ($user =~ /$users/) { - return 1 + return } else { return "$user is not authorized to upload packages belonging to $srpm (authorized persons: " . join(', ', split '\|', $users) . ")"; } -- cgit v1.2.1