From 645ebe3d40e6a148dca52054e91483253b3d7568 Mon Sep 17 00:00:00 2001 From: Jochen Wiedmann Date: Wed, 27 Apr 2011 15:20:55 -0700 Subject: Bug 423612 - Allow editing extern_id for users from the admin interface r=mkanat, a=mkanat --- Bugzilla/Auth.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Bugzilla/Auth.pm') diff --git a/Bugzilla/Auth.pm b/Bugzilla/Auth.pm index 782953878..e6127d32a 100644 --- a/Bugzilla/Auth.pm +++ b/Bugzilla/Auth.pm @@ -134,6 +134,12 @@ sub user_can_create_account { && $getter->user_can_create_account; } +sub extern_id_used { + my ($self) = @_; + return $self->{_info_getter}->extern_id_used + || $self->{_verifier}->extern_id_used; +} + sub can_change_email { return $_[0]->user_can_create_account; } @@ -397,6 +403,10 @@ Params: None Returns: C if users are allowed to create new Bugzilla accounts, C otherwise. +=item C + +Description: Whether or not current login system uses extern_id. + =item C Description: Whether or not the current login system allows users to -- cgit v1.2.3-24-g4f1b