Mysqldump - can an editor backup in admin?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
broony
Forum Members
Forum Members
Posts: 17
Joined: Mon Apr 23, 2007 5:52 am

Mysqldump - can an editor backup in admin?

Post 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!
broony
Forum Members
Forum Members
Posts: 17
Joined: Mon Apr 23, 2007 5:52 am

Re: Mysqldump - can an editor backup in admin?

Post by broony »

Anyone know the answer ?
casidougal
Forum Members
Forum Members
Posts: 98
Joined: Tue Jun 06, 2006 10:08 pm
Location: USA

Re: Mysqldump - can an editor backup in admin?

Post by casidougal »

I ran into this same problem.

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

Re: Mysqldump - can an editor backup in admin?

Post 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.
Post Reply

Return to “Modules/Add-Ons”