left overs from moving canEdit around
This commit is contained in:
parent
9449f5af0b
commit
3ba01fa99d
3 changed files with 2 additions and 5 deletions
|
|
@ -228,7 +228,7 @@ sub canView {
|
|||
} elsif ($page{startDate} < WebGUI::DateTime::time() && $page{endDate} > WebGUI::DateTime::time() && WebGUI::Grouping::isInGroup($page{groupIdView})) {
|
||||
return 1;
|
||||
} else {
|
||||
return canEditPage($pageId);
|
||||
return canEdit($pageId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -222,8 +222,8 @@ sub www_edit {
|
|||
#-------------------------------------------------------------------
|
||||
sub www_editSave {
|
||||
# default editSave overruled to build & save the pageList for faster retrieval.
|
||||
return WebGUI::Privilege::insufficient() unless (WebGUI::Privilege::canEditPage());
|
||||
my $self = shift;
|
||||
return WebGUI::Privilege::insufficient() unless ($self->canEdit);
|
||||
$self->SUPER::www_editSave();
|
||||
my (%pages, $pageList);
|
||||
my $searchRoot = $self->get("searchRoot");
|
||||
|
|
|
|||
|
|
@ -119,9 +119,6 @@ sub new {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_edit {
|
||||
return WebGUI::Privilege::insufficient()
|
||||
unless WebGUI::Privilege::canEditPage();
|
||||
|
||||
my $layout = WebGUI::HTMLForm->new;
|
||||
my $privileges = WebGUI::HTMLForm->new;
|
||||
my $properties = WebGUI::HTMLForm->new;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue