Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kieckhafer
Copy link
Member

@kieckhafer kieckhafer commented Aug 7, 2019

Impact: minor
Type: refactor

Issue

Tag filter implemented in #5232 was only accessible by admin accounts, as it was inside of a permissions check.

Solution

As we've had some requests for all users to be able to use this, we've moved the filter ability outside the admin permission check.

@mikemurray and I initially decided to only allow admin users the permission, as we wanted to further discuss performance impacts as this hits the database frequently. If performance becomes an issue here, we can revisit.

Breaking changes

None

Testing

  1. Login to the admin as a non-owner / admin (a Shop Manager).
  2. See that the filter works as described here: feat: add regex filter to tags GQL query #5232

@kieckhafer kieckhafer requested review from aldeed and nnnnat August 7, 2019 18:32
@kieckhafer kieckhafer force-pushed the ref-kieckhafer-tagFilterPermissions branch from 4782292 to 2968912 Compare August 7, 2019 18:39
@aldeed
Copy link
Contributor

aldeed commented Aug 8, 2019

Code 👍 , didn't test

@kieckhafer kieckhafer merged commit 1b64005 into develop Aug 8, 2019
@kieckhafer kieckhafer deleted the ref-kieckhafer-tagFilterPermissions branch August 8, 2019 21:45
@kieckhafer kieckhafer mentioned this pull request Aug 28, 2019
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.

3 participants