-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
143 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<name>English (en-GB)</name> | ||
<tag>en-GB</tag> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<metafile client="administrator"> | ||
<name>English (en-GB)</name> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<name>English (en-GB) Language Pack</name> | ||
<packagename>en-GB</packagename> | ||
<version>5.2.3.1</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<name>English (en-GB)</name> | ||
<tag>en-GB</tag> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<metafile client="api"> | ||
<name>English (en-GB)</name> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Site | ||
* @subpackage com_privacy | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\Component\Privacy\Site\Dispatcher; | ||
|
||
use Joomla\CMS\Dispatcher\ComponentDispatcher; | ||
use Joomla\CMS\Router\Route; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* ComponentDispatcher class for com_privacy | ||
* | ||
* @since 5.2.3 | ||
*/ | ||
class Dispatcher extends ComponentDispatcher | ||
{ | ||
/** | ||
* Method to check component access permission | ||
* | ||
* @since 5.2.3 | ||
* | ||
* @return void | ||
*/ | ||
protected function checkAccess() | ||
{ | ||
parent::checkAccess(); | ||
|
||
$view = $this->input->get('view'); | ||
|
||
// Submitting information requests and confirmation through the frontend is restricted to authenticated users at this time | ||
if (\in_array($view, ['confirm', 'request']) && $this->app->getIdentity()->guest) { | ||
$this->app->redirect( | ||
Route::_('index.php?option=com_users&view=login&return=' . base64_encode('index.php?option=com_privacy&view=' . $view), false) | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
/** | ||
* @package Joomla.Site | ||
* @subpackage com_privacy | ||
* | ||
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org> | ||
* @license GNU General Public License version 2 or later; see LICENSE.txt | ||
*/ | ||
|
||
namespace Joomla\Component\Users\Site\Dispatcher; | ||
|
||
use Joomla\CMS\Component\ComponentHelper; | ||
use Joomla\CMS\Dispatcher\ComponentDispatcher; | ||
use Joomla\CMS\Router\Route; | ||
|
||
// phpcs:disable PSR1.Files.SideEffects | ||
\defined('_JEXEC') or die; | ||
// phpcs:enable PSR1.Files.SideEffects | ||
|
||
/** | ||
* ComponentDispatcher class for com_privacy | ||
* | ||
* @since 5.2.3 | ||
*/ | ||
class Dispatcher extends ComponentDispatcher | ||
{ | ||
/** | ||
* Method to check component access permission | ||
* | ||
* @since 5.2.3 | ||
* | ||
* @return void | ||
*/ | ||
protected function checkAccess() | ||
{ | ||
parent::checkAccess(); | ||
|
||
$view = $this->input->get('view'); | ||
$user = $this->app->getIdentity(); | ||
|
||
// Do any specific processing by view. | ||
switch ($view) { | ||
case 'registration': | ||
// If the user is already logged in, redirect to the profile page. | ||
if ($user->get('guest') != 1) { | ||
// Redirect to profile page. | ||
$this->app->redirect(Route::_('index.php?option=com_users&view=profile', false)); | ||
} | ||
|
||
// Check if user registration is enabled | ||
if (ComponentHelper::getParams('com_users')->get('allowUserRegistration') == 0) { | ||
// Registration is disabled - Redirect to login page. | ||
$this->app->redirect(Route::_('index.php?option=com_users&view=login', false)); | ||
} | ||
break; | ||
|
||
// Handle view specific models. | ||
case 'profile': | ||
if ($user->get('guest') == 1) { | ||
// Redirect to login page. | ||
$this->app->redirect(Route::_('index.php?option=com_users&view=login', false)); | ||
} | ||
break; | ||
|
||
case 'remind': | ||
case 'reset': | ||
if ($user->get('guest') != 1) { | ||
// Redirect to profile page. | ||
$this->app->redirect(Route::_('index.php?option=com_users&view=profile', false)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<name>English (en-GB)</name> | ||
<tag>en-GB</tag> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<metafile client="site"> | ||
<name>English (en-GB)</name> | ||
<version>5.2.3</version> | ||
<creationDate>2024-12</creationDate> | ||
<creationDate>2025-01</creationDate> | ||
<author>Joomla! Project</author> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>www.joomla.org</authorUrl> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters