diff --git a/source/packages/com_mokosuitebackup/access.xml b/source/packages/com_mokosuitebackup/access.xml
index 53fcc84..37c2f9d 100644
--- a/source/packages/com_mokosuitebackup/access.xml
+++ b/source/packages/com_mokosuitebackup/access.xml
@@ -12,5 +12,8 @@
+
+
+
diff --git a/source/packages/com_mokosuitebackup/api/src/Controller/SnapshotsController.php b/source/packages/com_mokosuitebackup/api/src/Controller/SnapshotsController.php
index 92c3eb5..0d77d96 100644
--- a/source/packages/com_mokosuitebackup/api/src/Controller/SnapshotsController.php
+++ b/source/packages/com_mokosuitebackup/api/src/Controller/SnapshotsController.php
@@ -36,7 +36,7 @@ class SnapshotsController extends ApiController
*/
public function displayList(): static
{
- if (!$this->app->getIdentity()->authorise('core.manage', 'com_mokosuitebackup')) {
+ if (!$this->app->getIdentity()->authorise('mokosuitebackup.snapshot.manage', 'com_mokosuitebackup')) {
$this->app->setHeader('status', 403);
echo json_encode(['errors' => [['title' => 'Access denied']]]);
$this->app->close();
@@ -250,7 +250,7 @@ class SnapshotsController extends ApiController
*/
public function download(): static
{
- if (!$this->app->getIdentity()->authorise('core.manage', 'com_mokosuitebackup')) {
+ if (!$this->app->getIdentity()->authorise('mokosuitebackup.snapshot.manage', 'com_mokosuitebackup')) {
$this->app->setHeader('status', 403);
echo json_encode(['errors' => [['title' => 'Access denied']]]);
$this->app->close();
diff --git a/source/packages/com_mokosuitebackup/config.xml b/source/packages/com_mokosuitebackup/config.xml
index 6fdd1ad..ff63899 100644
--- a/source/packages/com_mokosuitebackup/config.xml
+++ b/source/packages/com_mokosuitebackup/config.xml
@@ -39,6 +39,73 @@
+
+
+
+