Timeline for How to hide local task if user has specific role
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 25 at 23:32 | comment | converted from answer | Hannah Harvey | @clive yes maybe I do mean those links. I am still learning Drupal Thank you for this comment. I will have a look at the documentation. Still learning all the functionalities of it all! | |
Jul 25 at 22:46 | comment | added | Clive♦ | I think you mean the links in the UI, i.e. those found at /admin/config/development/configuration? If so, you need to add an event subscriber and override the access with your own callback - drupal.org/docs/drupal-apis/routing-system/… has quite a lot of useful information | |
Jul 25 at 20:38 | comment | added | DigiDev | I have local tasks of import / export / ignore What I am trying to achieve is that I have a configImportForm that I have built I have created a permission I am seeing my form where I want it to be but I need to hide the other tasks if I have a role with the permission access configuration form 2 Does this make more sense? | |
Jul 25 at 20:35 | comment | added | Hudri | Err... no? Local tasks have nothing to do with config import/export | |
Jul 25 at 20:32 | comment | added | DigiDev | Id tried adding a permission to my routing.yml file I have import export ignore in configuration synchronisation and I am adding a import config task if import config task is there I don't want the other import does that make sense? | |
Jul 25 at 20:29 | history | answered | Hudri | CC BY-SA 4.0 |