Make the Deactivate account template user selectable for both LDAP and WebGUI. Fixes bug #11482
This commit is contained in:
parent
c0206e61f5
commit
d6f61c07d1
11 changed files with 124 additions and 11 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- fixed: Unable to add threads with permission to edit CS but not in post group
|
||||
- fixed #11478: Overzealous removal of double slashes in FilePump macro
|
||||
- fixed thread pagination on search results, off by 1 error and modal direction
|
||||
- fixed #11482: Template hard-coded in deactivateAccount
|
||||
|
||||
7.9.0
|
||||
- added #11383: AJAX username checks at registration (Luke Robinson / Orchard Solutions)
|
||||
|
|
|
|||
BIN
docs/upgrades/packages-7.9.1/root_import_auth.wgpkg
Normal file
BIN
docs/upgrades/packages-7.9.1/root_import_auth.wgpkg
Normal file
Binary file not shown.
|
|
@ -29,11 +29,27 @@ my $quiet; # this line required
|
|||
|
||||
|
||||
my $session = start(); # this line required
|
||||
addDeactivateAccountTemplateSettings($session);
|
||||
|
||||
# upgrade functions go here
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addDeactivateAccountTemplateSettings {
|
||||
my $session = shift;
|
||||
print "\tAdd settings for deactivate account... " unless $quiet;
|
||||
# and here's our code
|
||||
$session->setting->add('webguiDeactivateAccountTemplate', 'zaHUYsE_PgKk8hnVd8ffEQ');
|
||||
$session->db->write(<<EOSQL);
|
||||
ALTER TABLE ldapLink ADD COLUMN ldapDeactivateAccountTemplate CHAR(22) NOT NULL
|
||||
EOSQL
|
||||
$session->db->write(<<EOSQL);
|
||||
UPDATE ldapLink SET ldapDeactivateAccountTemplate='_P4PMiraGsLTfOjK4fYQPQ'
|
||||
EOSQL
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue