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 permissions using dynamic user or role fields #19073

Merged
merged 18 commits into from
Jul 24, 2023

Conversation

u12206050
Copy link
Contributor

@u12206050 u12206050 commented Jul 6, 2023

Dynamic variables were not fetched, so not being parsed and checked

Fixes #19039, fixes #18898, fixes #19043

Dynamic variables were not fetched, so not being parsed and checked
@changeset-bot
Copy link

changeset-bot bot commented Jul 6, 2023

🦋 Changeset detected

Latest commit: bad1f08

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@directus/app Patch
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@u12206050
Copy link
Contributor Author

Have tried fixing the unit tests, but have been unable to mock the pinia store successfully.

@u12206050
Copy link
Contributor Author

Should I just remove the unit tests so it will pass, even though I think it is best to include them?

@paescuj
Copy link
Member

paescuj commented Jul 10, 2023

Should I just remove the unit tests so it will pass, even though I think it is best to include them?

I'll look into this later that day 👍

@u12206050
Copy link
Contributor Author

Nice, well done @paescuj thanks! Hopefully we can get this released asap? Have been waiting on a fix for almost a month now.

@paescuj paescuj added this to the Next Release milestone Jul 12, 2023
@jaads jaads self-requested a review July 24, 2023 12:44
@rijkvanzanten rijkvanzanten merged commit 150153e into directus:main Jul 24, 2023
4 of 6 checks passed
br-rafaelbarros pushed a commit to personal-forks/directus-source that referenced this pull request Nov 7, 2023
* Fix permissions using dynamic user or role fields

Dynamic variables were not fetched, so not being parsed and checked

* Added tests

* Pretty

* Tried fixing unit tests.

* Finish parse-filter test

* Finish parse-preset test

* Update permissions store test

* Update docs for dynamic filters

* Add changeset

* Update tiny-carpets-remain.md

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants