Page 1 of 1

Mysqldump - can an editor backup in admin?

Posted: Fri Feb 20, 2009 1:18 pm
by broony
I have set group pemissions in the admin area
Create Mysql Dumps - editor  - ticked

Mysqldumps menu does not appear in admin for the editor user.
I want the editor to be able to create backups but not restore. Is this possible? Is  there something else I need to do, many thanks for any tips!

Re: Mysqldump - can an editor backup in admin?

Posted: Wed Mar 25, 2009 1:58 pm
by broony
Anyone know the answer ?

Re: Mysqldump - can an editor backup in admin?

Posted: Fri May 15, 2009 9:57 pm
by casidougal
I ran into this same problem.

Only way I found as a workaround is to give the editor "Modify Site Preferences" permissions.

Re: Mysqldump - can an editor backup in admin?

Posted: Fri May 15, 2009 11:40 pm
by vilkis
Hi,
If you do not want to let editors to "Modify Site Preferences" but to use a module MysqlDump then you have to hack  the MysqlDump module in this way:

in a file MysqlDump.module.php replace lines

Code: Select all

function GetAdminSection() {
		return 'siteadmin';
	}

with lines

Code: Select all

function GetAdminSection() {
		return 'extensions';
	}
Then you can access the MysqlDump module in menu "Extensions" .

vilkis

WARNING Before you make any modification read this topic and make a backup of files.