Skip to content

Commit

Permalink
Update in if created folder is disabled then can't view category and …
Browse files Browse the repository at this point in the history
…article:uvdesk#201
  • Loading branch information
Abhi12-gupta committed Jun 20, 2023
1 parent 65f059e commit f4f9c6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Controller/Website.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ public function viewFolder(Request $request)
if(!$solution)
$this->noResultFound();

if ($solution->getVisibility() == 'private')
return $this->redirect($this->generateUrl('helpdesk_knowledgebase'));

$breadcrumbs = [
[
'label' => $this->translator->trans('Support Center'),
Expand Down Expand Up @@ -183,6 +186,9 @@ public function viewFolderArticle(Request $request)

if(!$solution)
$this->noResultFound();

if ($solution->getVisibility() == 'private')
return $this->redirect($this->generateUrl('helpdesk_knowledgebase'));

$breadcrumbs = [
[
Expand Down

0 comments on commit f4f9c6b

Please sign in to comment.