Problem/Motivation

Non-admins roles cannot configure extlink. Allows access to only extlink configuration.

Proposed resolution

Add a new permission "administer Extlink settings".
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

Remaining tasks

  • Add the permissions
  • Update Tests
  • Port the patch to 8.x

Original report by Revathi Manohar

I am facing the problem with External link module.In my website the editor want to access the External link configuration page.But there is no permission.

This may be useful for others also.Thanks in advance.

CommentFileSizeAuthor
#13 2939169-13.patch1.75 KBnikitaaswani

Comments

Revathi Manohar created an issue. See original summary.

Revathi Manohar’s picture

Assigned: Unassigned » Revathi Manohar
Revathi Manohar’s picture

Assigned: Revathi Manohar » Unassigned
elachlan’s picture

I believe this requires hook_permission.

ramya balasubramanian’s picture

Assigned: Unassigned » ramya balasubramanian
ramya balasubramanian’s picture

@Revathi,

I will update the patch soon.

elachlan’s picture

@Ramaya, thanks.

You will also need to update the tests in extlink.test.

elachlan’s picture

Category: Bug report » Feature request
Revathi Manohar’s picture

Thanks @Ramya

elachlan’s picture

Title: Permission not available for non-admin roles » Implement hook_permission
Category: Feature request » Task
Issue summary: View changes
elachlan’s picture

Issue tags: -external links
elachlan’s picture

Issue tags: +Novice
nikitaaswani’s picture

Status: Active » Needs review
StatusFileSize
new1.75 KB

I have implemented the HOOK_permissions() and also modified the 'test' file accordingly.

nikitaaswani’s picture

Assigned: ramya balasubramanian » Unassigned

elachlan’s picture

Status: Needs review » Fixed

Thank you very much Nikitaaswani!

Status: Fixed » Closed (fixed)

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