Commit b1b59f55 authored by DamienMcKenna's avatar DamienMcKenna

By DamienMcKenna, pere-orga, ikit-claw, cashwilliams: Make all permissions restricted.

parent b05a282f
......@@ -80,6 +80,10 @@ Do not change the file extension of backup files or the restore function will be
unable to determine the compression type the file and will not function
correctly.
The module's permissions should only be given to trusted users due to the
inherent security vulnerabilities in allowing people access to a site's database
and/or files backups.
IF A RESTORE FAILS:
Don't panic, the restore file should work with phpMyAdmin's import function, or
with the mysql command line tool. If it does not, then it is likely corrupt; you
......
......@@ -303,26 +303,32 @@ function backup_migrate_permission() {
'access backup and migrate' => array(
'title' => t('Access Backup and Migrate'),
'description' => t('Access the Backup and Migrate admin section.'),
'restrict access' => TRUE,
),
'perform backup' => array(
'title' => t('Perform a backup'),
'description' => t('Back up any of the available databases.'),
'restrict access' => TRUE,
),
'access backup files' => array(
'title' => t('Access backup files'),
'description' => t('Access and download the previously created backup files.'),
'restrict access' => TRUE,
),
'delete backup files' => array(
'title' => t('Delete backup files'),
'description' => t('Delete the previously created backup files.'),
'restrict access' => TRUE,
),
'restore from backup' => array(
'title' => t('Restore the site'),
'description' => t('Restore the site\'s database from a backup file.'),
'restrict access' => TRUE,
),
'administer backup and migrate' => array(
'title' => t('Administer Backup and Migrate'),
'description' => t('Edit Backup and Migrate profiles, schedules and destinations.'),
'restrict access' => TRUE,
),
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment