29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-05-28 07:53:37 +00:00

Merge branch '4.3-dev' into 4.4-dev

This commit is contained in:
Allon Moritz 2023-09-19 10:40:48 +02:00
commit 8bbe6c6f32
No known key found for this signature in database
GPG Key ID: 6486E0BC67E6DDF4
4 changed files with 26 additions and 5 deletions

View File

@ -31,11 +31,8 @@ class Dispatcher extends ComponentDispatcher
*/
protected function checkAccess()
{
$extension = empty($this->getApplication()->getInput()->getCmd('extension'))
? ''
: $this->getApplication()->getInput()->getCmd('extension');
$parts = explode('.', $extension);
$extension = $this->getApplication()->getInput()->getCmd('extension', '');
$parts = explode('.', $extension);
// Check the user has permission to access this component if in the backend
if ($this->app->isClient('administrator') && !$this->app->getIdentity()->authorise('core.manage', $parts[0])) {

View File

@ -105,6 +105,13 @@ class ConsentsModel extends ListModel
->bind(':state', $state, ParameterType::INTEGER);
}
$subject = $this->getState('filter.subject');
if (!empty($subject)) {
$query->where($db->quoteName('a.subject') . ' = :subject')
->bind(':subject', $subject, ParameterType::STRING);
}
// Handle the list ordering.
$ordering = $this->getState('list.ordering');
$direction = $this->getState('list.direction');

View File

@ -48,6 +48,22 @@ class FileAdapter extends InstallerAdapter
*/
protected $supportsDiscoverInstall = false;
/**
* List of processed folders
*
* @var array
* @since 3.4
*/
protected $folderList;
/**
* List of processed files
*
* @var array
* @since 3.4
*/
protected $fileList;
/**
* Method to copy the extension's base files from the `<files>` tag(s) and the manifest file
*

View File

@ -137,6 +137,7 @@ final class Finder extends CMSPlugin
);
$words = array_filter(array_map('trim', $words));
$words = array_unique($words);
$db = $this->getDatabase();
$query = $db->getQuery(true);