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

🐛 Filter only editable relations that are visible to current user (ref: toolbox child layers) #148

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

volterra79
Copy link
Member

In case admin set a layer not visible for a specific user:

Screenshot_20250224_093214

and this layer is in relation with an editable layer (father), when try to load a editing plugin, we get this error:

Screenshot_20250224_093319

@volterra79 volterra79 added bug Something isn't working backport to v3.9.x labels Feb 24, 2025
@volterra79 volterra79 added this to the 4.0 milestone Feb 24, 2025
@volterra79 volterra79 requested review from leolami and Raruto February 24, 2025 08:39
@volterra79 volterra79 self-assigned this Feb 24, 2025
@volterra79 volterra79 removed the request for review from Raruto February 24, 2025 09:34
volterra79 added a commit to g3w-suite/g3w-admin that referenced this pull request Feb 24, 2025
@volterra79 volterra79 requested a review from Raruto February 24, 2025 13:05
@Raruto Raruto changed the title 🐛 Fix editable relation check for child layers in toolbox 🐛 Filter only editable relations that are visible to current user (ref: toolbox child layers) Feb 24, 2025
@volterra79 volterra79 merged commit 72249c1 into dev Feb 24, 2025
@volterra79 volterra79 deleted the fix_view_user_permission branch February 24, 2025 13:43
github-actions bot pushed a commit that referenced this pull request Feb 24, 2025
…f: toolbox child layers) (#148)

* 🐛 Fix editable relation check for child layers in toolbox

* code format

* 🎨 Clean code - https://github.com/g3w-suite/g3w-client-plugin-editing/pull/148/files/d9443f9b310bec1578cbfaa23a1121daea7e0e1a

---------

Co-authored-by: Raruto <Raruto@users.noreply.github.com>
(cherry picked from commit 72249c1)
volterra79 added a commit that referenced this pull request Feb 24, 2025
…f: toolbox child layers) (#148) (#149)

* 🐛 Fix editable relation check for child layers in toolbox

* code format

* 🎨 Clean code - https://github.com/g3w-suite/g3w-client-plugin-editing/pull/148/files/d9443f9b310bec1578cbfaa23a1121daea7e0e1a

---------

Co-authored-by: Raruto <Raruto@users.noreply.github.com>
(cherry picked from commit 72249c1)

Co-authored-by: Francesco Boccacci <boccacci.francesco@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to v3.9.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants