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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bunty Badgujar created an issue. See original summary.

prajaankit’s picture

Priority: Normal » Major
mark_fullmer’s picture

Hi folks,

This should be fairly simple to resolve. I'll get it done this week.

mark_fullmer’s picture

The 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.

  • mark_fullmer committed a1d0feb on 8.x-1.x
    Issue #2893012 by mark_fullmer: Permission "Administer Twitter widget...
mark_fullmer’s picture

mark_fullmer’s picture

Version: 8.x-1.2 » 8.x-1.x-dev
Status: Active » Fixed
Bunty Badgujar’s picture

Hi 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

Bunty Badgujar’s picture

Status: Needs work » Needs review
prajaankit’s picture

FileSize
18.04 KB
59.26 KB

Hi Bunty ,

Thanks your updated patch ,

After apply your patch ,

/admin/content/twitter_widget (working) for Other roles than ADMIN also.

Thanks

prajaankit’s picture

mark_fullmer’s picture

Status: Needs review » Fixed

Thanks, folks. This has been committed & will be shortly packaged as a new release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.