Jump to content

Site Backup Permissions


vwatson
 Share

Recommended Posts

Is it possible or could it be added in the site backup module, the option to give a role the ability to create and download a backup, but not have access to the delete and restore options?

I'd like my users to be able to create backups without having full access to the other two features.

Link to comment
Share on other sites

  • 6 months later...

This is not possible right now, but it is definitely possible to implement, though I highly doubt Ryan would prioritize this right now, you have a better chance giving it a shot yourself editing the module's code and setting up the role/permissions yourself.  

Link to comment
Share on other sites

@vwatson, if you want a simple but not 100% tamper-proof solution then the AdminOnSteroids module makes it fairly easy.

1. Install AdminOnSteroids.

2. In the "Asset Paths" section, add the URL to a CSS file that will contain custom styles for the admin:

2019-11-12_142909.png.3667666b24f379f333bdb0750e62955b.png

3. In this CSS file, for a role named "editor"...

/* Hide restore and delete links in ProcessDatabaseBackups */
.role-editor.ProcessDatabaseBackups a[href*='/db-backups/restore/'],
.role-editor.ProcessDatabaseBackups a[href*='/db-backups/delete/'] { display:none; }

 

Edited by Robin S
Simplified the CSS
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...