Skip to content

Commit

Permalink
won't redirect users
Browse files Browse the repository at this point in the history
  • Loading branch information
jessewoo committed Sep 27, 2024
1 parent adae70e commit 9d5fe43
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion core/components/com_forum/config/access.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<access component="com_forum">
<section name="component">
<action name="core.access" title="JACTION_ACCESS" description="JACTION_ACCESS_COMPONENT_DESC" />
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
Expand Down
10 changes: 0 additions & 10 deletions core/components/com_forum/site/forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 9d5fe43

Please sign in to comment.