From d9cbb0f0a62bba345ed26ac68364bb441f41d35d Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 12 May 2006 09:40:56 +0000 Subject: Bug 300410: Bugzilla::Auth needs to be restructured to not require a BEGIN block Patch By Max Kanat-Alexander r=LpSolit, a=myk --- createaccount.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index 01b746c89..edd1c0a66 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -49,7 +49,7 @@ my $vars = {}; print $cgi->header(); # If we're using LDAP for login, then we can't create a new account here. -unless (Bugzilla::Auth->can_edit('new')) { +unless (Bugzilla->user->authorizer->user_can_create_account) { ThrowUserError("auth_cant_create_account"); } -- cgit v1.2.3-24-g4f1b