-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Returning custom field view permission #13741
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I was so sure I found the problem. There was another line missing. Added that and then updated the existing test that confirms there are 2 permissions for the contact fields now. |
Thanks @escopecz - when I try to view the custom fields logged in with a user who has 'view' permission: I don't actually see it in the settings menu at all. I think that I should at least be able to view them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine 👍
Works well from API perspective - can get all custom fields with both - view or manage permissions.
The problem with accessing Mautic Panel custom fields with view-only permissions is also present in the 4.x version. So this issue is not a regression. In my opinion, it's good to go.
Thanks for confirming. Since this fixes the regression described in #13602 I'm merging this to unblock the release of 5.1.0 |
Description:
This line got removed in https://github.com/mautic/mautic/pull/13321/files#diff-fc1c6863009fa9dbb412ad96ef474537d4e3d72c2ccc90f126e7bd808b0e45a7L64 by accident. Probably due to extensive conflicts when updating that PR and its predecessor to updated target branch.
Steps to test this PR: