Skip to content

Conversation

@Adnan-cds
Copy link
Contributor

Non-admin users with the "Access geo overview page" permission are unable to
access the Geo overview page at the moment. Here we resolve it by assigning
this permission as the admin_permission for Geo entities.

How to test

  • Login as a user with the "Content designer" role.
  • Try to access /admin/content/geo
  • An "Access denied" type response should appear on the page.

Non-admin users with the "Access geo overview page" permission are unable to
access the Geo overview page at the moment.  Here we resolve it by assigning
this permission as the admin_permission for Geo entities.
@finnlewis
Copy link
Member

@Adnan-cds and @ekes discussed this at Merge Monday.

Interesting discussion on https://www.drupal.org/project/drupal/issues/2938889

@Adnan-cds will write some tests to clarify expected behaviour and @ekes will review and approve when ready.

Added a Functional test.  Also fixed deprecation errors.
@Adnan-cds
Copy link
Contributor Author

I have added a small Functional test to check if users with the access geo overview permission can access /admin/content/geo. I also had to make a few minor code changes to suppress code deprecation warnings. Ready for review. @finnlewis @ekes

Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussing with @ekes and @Adnan-cds on merge Monday call, all tests pass and we've got some new tests. Good to go we reckon!

@Adnan-cds
Copy link
Contributor Author

Thanks Finn. Merging...

@Adnan-cds Adnan-cds merged commit f9be21f into 1.x Dec 6, 2021
@andybroomfield andybroomfield mentioned this pull request Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants