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.
Hi,
The permission "Administer Twitter widget entities" is not working when given to some other roles except "Administrator". Other links like add (/admin/content/twitter_widget/add), edit (/admin/content/twitter_widget/2/edit) are working fine, When opens directly.
Example:-
Create test role give all the permission under "Twitter Profile Widget". And create user with test role and check following links :-
- /admin/content/twitter_widget (not working)
- /admin/content/twitter_widget/{widget_id}/edit (working)
- /admin/content/twitter_widget/add (working)
- /admin/content/twitter_widget/{widget_id}/delete (working)
Thanks
Comment | File | Size | Author |
---|---|---|---|
#10 | 2017-07-18_1454.png | 59.26 KB | prajaankit |
#10 | 2017-07-18_1444.png | 18.04 KB | prajaankit |
#8 | permission_issue-2893012-8.patch | 648 bytes | Bunty Badgujar |
#6 | Screen Shot 2017-07-17 at 10.13.57 AM.png | 80.72 KB | mark_fullmer |
#4 | permission_administer_not_working-2893012-4.patch | 450 bytes | mark_fullmer |
Comments
Comment #2
prajaankit CreditAttribution: prajaankit at ]init[ AG commentedComment #3
mark_fullmerHi folks,
This should be fairly simple to resolve. I'll get it done this week.
Comment #4
mark_fullmerThe attached patch sets the route "/admin/config/media/twitter_profile_widget" to use the "Administer Twitter widget entities" permission.
Please note that for creation, revisioning, deletion, and viewing, there are separate permissions, as shown in the screenshot, that can be given to any roles.
Comment #6
mark_fullmerComment #7
mark_fullmerComment #8
Bunty Badgujar CreditAttribution: Bunty Badgujar commentedHi mark_fullmer,
Thanks for your quick reply. But your given patch is not solve this issue the because the routing you have added in patch is different then actual issue.
I have created new patch with the required routing, that will check the permission of this path "/admin/content/twitter_widget" for other role then the administrator.
Thanks
Comment #9
Bunty Badgujar CreditAttribution: Bunty Badgujar commentedComment #10
prajaankit CreditAttribution: prajaankit at ]init[ AG commentedHi Bunty ,
Thanks your updated patch ,
After apply your patch ,
/admin/content/twitter_widget (working) for Other roles than ADMIN also.
Thanks
Comment #11
prajaankit CreditAttribution: prajaankit at ]init[ AG commentedComment #13
mark_fullmerThanks, folks. This has been committed & will be shortly packaged as a new release.