Changes in compliance with GUIDs.
This commit is contained in:
parent
cb1b60d352
commit
17b968a888
1 changed files with 3 additions and 3 deletions
|
|
@ -1927,7 +1927,7 @@ sub www_postSave {
|
||||||
userId=>$session{user}{userId},
|
userId=>$session{user}{userId},
|
||||||
username=>($session{form}{visitorName} || $session{user}{alias})
|
username=>($session{form}{visitorName} || $session{user}{alias})
|
||||||
);
|
);
|
||||||
if ($session{form}{parentId} > 0) { # reply
|
if ($session{form}{parentId} ne '') { # reply
|
||||||
%postData = (%postData, %postDataNew);
|
%postData = (%postData, %postDataNew);
|
||||||
my $parentPost = WebGUI::Forum::Post->new($session{form}{parentId});
|
my $parentPost = WebGUI::Forum::Post->new($session{form}{parentId});
|
||||||
return WebGUI::Privilege::insufficient() unless ($parentPost->getThread->getForum->canPost);
|
return WebGUI::Privilege::insufficient() unless ($parentPost->getThread->getForum->canPost);
|
||||||
|
|
@ -1941,7 +1941,7 @@ sub www_postSave {
|
||||||
return "Redirecting...";
|
return "Redirecting...";
|
||||||
#return www_viewThread($caller,$post->get("forumPostId"));
|
#return www_viewThread($caller,$post->get("forumPostId"));
|
||||||
}
|
}
|
||||||
if ($session{form}{forumPostId} > 0) { # edit
|
if ($session{form}{forumPostId} ne '') { # edit
|
||||||
my $post = WebGUI::Forum::Post->new($session{form}{forumPostId});
|
my $post = WebGUI::Forum::Post->new($session{form}{forumPostId});
|
||||||
return WebGUI::Privilege::insufficient() unless ($post->canEdit);
|
return WebGUI::Privilege::insufficient() unless ($post->canEdit);
|
||||||
if ($post->getThread->getForum->get("addEditStampToPosts")) {
|
if ($post->getThread->getForum->get("addEditStampToPosts")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue