diff options
author | Jochen Wiedmann <jochen.wiedmann@gmail.com> | 2011-04-27 15:20:55 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-04-27 15:20:55 -0700 |
commit | 645ebe3d40e6a148dca52054e91483253b3d7568 (patch) | |
tree | df9a0bdb22479b789668a051397a3f5cb658c7ab /Bugzilla/Auth.pm | |
parent | 6233375db2f69e79f2fa7ba3030956aa2a6eafbe (diff) | |
download | bugs-645ebe3d40e6a148dca52054e91483253b3d7568.tar bugs-645ebe3d40e6a148dca52054e91483253b3d7568.tar.gz bugs-645ebe3d40e6a148dca52054e91483253b3d7568.tar.bz2 bugs-645ebe3d40e6a148dca52054e91483253b3d7568.tar.xz bugs-645ebe3d40e6a148dca52054e91483253b3d7568.zip |
Bug 423612 - Allow editing extern_id for users from the admin interface
r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/Auth.pm')
-rw-r--r-- | Bugzilla/Auth.pm | 10 |
1 files changed, 10 insertions, 0 deletions
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<true> if users are allowed to create new Bugzilla accounts, C<false> otherwise. +=item C<extern_id_used> + +Description: Whether or not current login system uses extern_id. + =item C<can_change_email> Description: Whether or not the current login system allows users to |