bug fixes
This commit is contained in:
parent
d7d6819204
commit
88c42da7a0
14 changed files with 59 additions and 23 deletions
|
|
@ -53,7 +53,7 @@ sub www_auth {
|
|||
my $auth;
|
||||
($auth) = WebGUI::SQL->quickArray("select authMethod from users where username=".quote($session{form}{username})) if($session{form}{username});
|
||||
my $authMethod = getInstance($auth);
|
||||
my $methodCall = $session{form}{method} || $_[0];
|
||||
my $methodCall = $session{form}{method} || $_[0] || "init";
|
||||
if(!$authMethod->isCallable($methodCall)){
|
||||
WebGUI::ErrorHandler::security("access uncallable auth method on page '".$session{page}{title}."' [".$session{page}{pageId}."].");
|
||||
return WebGUI::International::get(1077);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ sub _seeAlso {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_viewHelp {
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(12));
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(7));
|
||||
my $ac = WebGUI::AdminConsole->new("help");
|
||||
my $namespace = $session{form}{namespace} || "WebGUI";
|
||||
my $help = _get($session{form}{hid},$namespace);
|
||||
|
|
@ -63,7 +63,7 @@ sub www_viewHelp {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_viewHelpIndex {
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(12));
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Grouping::isInGroup(7));
|
||||
my %helpIndex;
|
||||
tie %helpIndex, "Tie::IxHash";
|
||||
my $i;
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ sub www_editProfileSave {
|
|||
foreach $fieldName (keys %{$profile}) {
|
||||
$u->profileField($fieldName,WebGUI::HTML::filter(${$profile}{$fieldName},"javascript"));
|
||||
}
|
||||
return WebGUI::Operation::Auth::www_displayAccount();
|
||||
return WebGUI::Operation::Auth::www_auth();
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue