Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Access to Geo overview page #43

Merged
merged 3 commits into from
Dec 6, 2021
Merged

Fix: Access to Geo overview page #43

merged 3 commits into from
Dec 6, 2021

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.

None yet

3 participants