I was tasked to clone a user role for a site the other day. Here are the options one has:
- Execute a db query -> not user-friendly
- Create a new role, then manually set the same permissions as another role -> endless scrolling and clicking on checkboxes ; becomes worse the more contrib with additional permissions a site has (or many content types, since they also add multiple permissions); becomes even worse if the role you want to clone has many permissions assigned to it (might also become a victim of https://www.drupal.org/project/drupal/issues/1203766 if the site has many roles)
- https://www.drupal.org/project/duplicate_role (have not actually tested it) -> not ported to Backdrop
We should have a "Clone role" action.
GitHub Issue #:
3813
Recent comments
You can try the above file somewhere, what do you think? I could safely replace this file on my running site. This is indeed "MacGyver" ;-) You don't have to replace...
File hashing uploads made through TinyMCE
This was tricky, so i tried to stay minimal and try to snatch the very first procedure after file upload and inject rehashing there. The file is tinymce.pages.inc under the function...
File hashing uploads made through TinyMCE
Bee's great. But if you don't want to install bee, or can't, or you already have a bunch of scripts you're used to using in D7, then the method I posted is quick and easy and all you really...
How to create a command-line (cli) routine or script (bee not required)