";
}
- if ($editall && !Param('useLDAP')) {
+ if ($editall && Bugzilla::Auth->can_edit) {
print "
\n";
my $span = $candelete ? 3 : 2;
print qq{
@@ -391,9 +391,8 @@ if ($action eq 'add') {
exit;
}
- if(Param('useLDAP')) {
- print "This site is using LDAP for authentication. To add a new user, ";
- print "please contact the LDAP administrators.";
+ if(!Bugzilla::Auth->can_edit) {
+ print "The authentication mechanism you are using does not permit accounts to be created from Bugzilla";
PutTrailer();
exit;
}
@@ -429,9 +428,8 @@ if ($action eq 'new') {
exit;
}
- if(Param('useLDAP')) {
- print "This site is using LDAP for authentication. To add a new user, ";
- print "please contact the LDAP administrators.";
+ if (!Bugzilla::Auth->can_edit) {
+ print "This site's authentication mechanism does not allow new users to be added.";
PutTrailer();
exit;
}
@@ -791,7 +789,7 @@ if ($action eq 'update') {
# Update the database with the user's new password if they changed it.
- if ( !Param('useLDAP') && $editall && $password ) {
+ if ( Bugzilla::Auth->can_edit && $editall && $password ) {
my $passworderror = ValidatePassword($password);
if ( !$passworderror ) {
my $cryptpassword = SqlQuote(Crypt($password));
--
cgit v1.2.3-24-g4f1b