Skip to content

Commit

Permalink
Ticket #4817 - Courses improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Dec 11, 2024
1 parent b3546a3 commit 526b67f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/boonex/courses/classes/BxCoursesModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ protected function _performHideCourseProfile($aDataEntry)
return false;

$this->checkAllowedHide($aDataEntry, true);

$this->alertAfterEdit($this->_oDb->getContentInfoById($iContentId));

return $this->_bIsApi ? [
'title' => _t($CNF['T']['menu_item_title_unhide']),
'request_url' => $this->_oConfig->getName() . '/publish/&params[]=' . $iContentId,
Expand All @@ -798,6 +801,9 @@ protected function _performUnhideCourseProfile($aDataEntry)
return false;

$this->checkAllowedHide($aDataEntry, true);

$this->alertAfterEdit($this->_oDb->getContentInfoById($iContentId));

return $this->_bIsApi ? [
'title' => _t($CNF['T']['menu_item_title_hide']),
'request_url' => $this->_oConfig->getName() . '/hide/&params[]=' . $iContentId,
Expand Down

0 comments on commit 526b67f

Please sign in to comment.