Jump to content
vwatson

Site Backup Permissions

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.

Share this post


Link to post
Share on other sites

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.  

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...