From 9d5fe433766ce78c409dc97cd357b569e2c4e4e1 Mon Sep 17 00:00:00 2001 From: Jesse Woo Date: Fri, 27 Sep 2024 12:53:21 -0700 Subject: [PATCH] won't redirect users --- core/components/com_forum/config/access.xml | 1 - core/components/com_forum/site/forum.php | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/core/components/com_forum/config/access.xml b/core/components/com_forum/config/access.xml index b8661ea060c..91a57815e67 100644 --- a/core/components/com_forum/config/access.xml +++ b/core/components/com_forum/config/access.xml @@ -8,7 +8,6 @@
- diff --git a/core/components/com_forum/site/forum.php b/core/components/com_forum/site/forum.php index 0cb09607abc..a0577d99fe2 100644 --- a/core/components/com_forum/site/forum.php +++ b/core/components/com_forum/site/forum.php @@ -17,16 +17,6 @@ require_once __DIR__ . DS . 'controllers' . DS . $controllerName . '.php'; $controllerName = __NAMESPACE__ . '\\Controllers\\' . ucfirst(strtolower($controllerName)); -if (!User::authorise('core.access', 'com_forum')) -{ - $return = base64_encode(Request::getString('REQUEST_URI', '', 'server')); - //$return = base64_encode($_SERVER['REQUEST_URI']); - App::redirect( Route::url('index.php?option=com_users&view=login&return=' . $return, false), - "Please Log in and then we will redirect you to the forum pages", - 'warning' - ); -} - // Instantiate controller $controller = new $controllerName(); $controller->execute();