Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The code of the hook_page_attachments references the "access cmis browser" permission which no more exist.
Steps to reproduce
Proposed resolution
The library should be added if the user has the permission "access all cmis browsers" or any "access cmis browser $config_id" permission.
Also this hook will be removed in the refactoring for the library to be added when an element with ajax is added.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork cmis-3169424
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
liber_tComment #4
liber_tComment #5
liber_tComment #6
GrimreaperI have posted a message on Drupal Slack https://drupal.slack.com/archives/C51GNJG91/p1600077762083900. Waiting a little bit to have a reply.
If no reply I will merge (and I will manually test also before).
The other question I have, and we will see when merging, is how to credit reviewer/tester/other people, as they are not in the commit message.
Comment #7
GrimreaperOk for me.
As a hook had been removed, I think it is a best practice to introduce an empty hook_post_update to clear cache, even if in majority in deployment process a cache clear is involved.
https://www.drupal.org/node/2960601
Like datetime_range_post_update_translatable_separator()
Comment #9
GrimreaperI will cherry-pick on the 3.0.x
Comment #11
GrimreaperFixing commit message and author.