fixed: able to view visitor profile, send private messages, add as friend
This commit is contained in:
parent
cb6a1c94c4
commit
33c13b97ef
2 changed files with 13 additions and 2 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
- fixed: "Back to Album" link doesn't work
|
- fixed: "Back to Album" link doesn't work
|
||||||
- fixed: email validation links can be broken by mail servers
|
- fixed: email validation links can be broken by mail servers
|
||||||
- fixed: Clipboard select all doesn't work with one item in IE
|
- fixed: Clipboard select all doesn't work with one item in IE
|
||||||
|
- fixed: able to view visitor profile, send private messages, add as friend
|
||||||
|
|
||||||
7.5.9
|
7.5.9
|
||||||
- fixed: Collaboration System attachments follow site's max size instead of CS's
|
- fixed: Collaboration System attachments follow site's max size instead of CS's
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ use Getopt::Long;
|
||||||
use WebGUI::Session;
|
use WebGUI::Session;
|
||||||
use WebGUI::Storage;
|
use WebGUI::Storage;
|
||||||
use WebGUI::Asset;
|
use WebGUI::Asset;
|
||||||
|
use WebGUI::User;
|
||||||
|
|
||||||
my $toVersion = '7.5.10';
|
my $toVersion = '7.5.10';
|
||||||
my $quiet; # this line required
|
my $quiet; # this line required
|
||||||
|
|
@ -22,7 +22,7 @@ my $quiet; # this line required
|
||||||
|
|
||||||
my $session = start(); # this line required
|
my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
privatizeVisitor($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -35,6 +35,16 @@ finish($session); # this line required
|
||||||
# print "DONE!\n" unless $quiet;
|
# print "DONE!\n" unless $quiet;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
sub privatizeVisitor {
|
||||||
|
my $session = shift;
|
||||||
|
my $visitor = WebGUI::User->new($session, '1');
|
||||||
|
$visitor->profileField('allowPrivateMessages', 'none');
|
||||||
|
$visitor->profileField('publicEmail', 0);
|
||||||
|
$visitor->profileField('publicProfile', 0);
|
||||||
|
$visitor->profileField('ableToBeFriend', 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue