fixed erroneous vital component messages
This commit is contained in:
parent
a69ba26320
commit
7555c8a2c1
1 changed files with 3 additions and 3 deletions
|
|
@ -237,7 +237,7 @@ children from the pagetree and place it on the clipboard.
|
||||||
=cut
|
=cut
|
||||||
sub www_cutPage {
|
sub www_cutPage {
|
||||||
my ($page);
|
my ($page);
|
||||||
if ($session{page}{pageId} < 26 && $session{page}{pageId} >= 0) {
|
if ($session{page}{isSystem}) {
|
||||||
return WebGUI::Privilege::vitalComponent();
|
return WebGUI::Privilege::vitalComponent();
|
||||||
|
|
||||||
} elsif (WebGUI::Page::canEdit()) {
|
} elsif (WebGUI::Page::canEdit()) {
|
||||||
|
|
@ -261,7 +261,7 @@ This function returns an 'Are you sure' page for moving the page to the trash.
|
||||||
=cut
|
=cut
|
||||||
sub www_deletePage {
|
sub www_deletePage {
|
||||||
my ($output);
|
my ($output);
|
||||||
if ($session{page}{pageId} < 1000 && $session{page}{pageId} > 0) {
|
if ($session{page}{isSystem}) {
|
||||||
return WebGUI::Privilege::vitalComponent();
|
return WebGUI::Privilege::vitalComponent();
|
||||||
} elsif (WebGUI::Page::canEdit()) {
|
} elsif (WebGUI::Page::canEdit()) {
|
||||||
$output .= helpIcon("page delete");
|
$output .= helpIcon("page delete");
|
||||||
|
|
@ -286,7 +286,7 @@ Actually transfers the page to the trash.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
sub www_deletePageConfirm {
|
sub www_deletePageConfirm {
|
||||||
if ($session{page}{pageId} < 1000 && $session{page}{pageId} > 0) {
|
if ($session{page}{isSystem}) {
|
||||||
return WebGUI::Privilege::vitalComponent();
|
return WebGUI::Privilege::vitalComponent();
|
||||||
} elsif (WebGUI::Page::canEdit()) {
|
} elsif (WebGUI::Page::canEdit()) {
|
||||||
my $page = WebGUI::Page->getPage($session{page}{pageId});
|
my $page = WebGUI::Page->getPage($session{page}{pageId});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue