From d1f5db402661a4dd982982bea81438528d4cd744 Mon Sep 17 00:00:00 2001 From: David McReynolds Date: Fri, 24 Oct 2014 10:12:38 -0700 Subject: [PATCH] Fix for issue #288 to allow users to select from the URL page from WYSIWYG editor --- fuel/modules/fuel/controllers/pages.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fuel/modules/fuel/controllers/pages.php b/fuel/modules/fuel/controllers/pages.php index 7b065a4af..d56934aa4 100644 --- a/fuel/modules/fuel/controllers/pages.php +++ b/fuel/modules/fuel/controllers/pages.php @@ -7,8 +7,14 @@ class Pages extends Module { public function __construct() { - parent::__construct(); + parent::__construct(FALSE); + // allow the select URL page to show up regardless of permissions + $validate = (fuel_uri_segment(2) == 'select') ? FALSE : TRUE; + if ($validate) + { + $this->_validate_user($this->permission); + } $this->load->module_model(FUEL_FOLDER, 'fuel_pagevariables_model'); }