diff --git a/src/administrator/components/com_weblinks/src/Extension/WeblinksComponent.php b/src/administrator/components/com_weblinks/src/Extension/WeblinksComponent.php index b39574c..bd8b9c2 100644 --- a/src/administrator/components/com_weblinks/src/Extension/WeblinksComponent.php +++ b/src/administrator/components/com_weblinks/src/Extension/WeblinksComponent.php @@ -1,7 +1,7 @@ authorise('core.delete', 'com_contact.category.' . (int) $record->catid); + return Factory::getUser()->authorise('core.delete', 'com_weblinks.category.' . (int) $record->catid); } /** diff --git a/src/administrator/components/com_weblinks/src/Service/HTML/AdministratorService.php b/src/administrator/components/com_weblinks/src/Service/HTML/AdministratorService.php index 2577b8f..0910d32 100644 --- a/src/administrator/components/com_weblinks/src/Service/HTML/AdministratorService.php +++ b/src/administrator/components/com_weblinks/src/Service/HTML/AdministratorService.php @@ -1,7 +1,7 @@ * @license GNU General Public License version 2 or later; see LICENSE.txt diff --git a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_body.php b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_body.php index 6107d0b..b825873 100644 --- a/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_body.php +++ b/src/administrator/components/com_weblinks/tmpl/weblinks/default_batch_body.php @@ -30,7 +30,7 @@ $published = $this->state->get('filter.published'); = 0) : ?>
- 'com_contact']); ?> + 'com_weblinks']); ?>
diff --git a/src/components/com_weblinks/src/Service/Router.php b/src/components/com_weblinks/src/Service/Router.php index 5a7a2c7..2469840 100644 --- a/src/components/com_weblinks/src/Service/Router.php +++ b/src/components/com_weblinks/src/Service/Router.php @@ -1,7 +1,7 @@ * @license GNU General Public License version 2 or later; see LICENSE.txt @@ -25,7 +25,7 @@ use Joomla\Database\DatabaseInterface; use Joomla\Database\ParameterType; /** - * Routing class from com_contact + * Routing class from com_weblinks * * @since 3.3 */