-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Role export access in Leads, Forms, Reports #5995
Conversation
Label: Ready to test |
Label: WIP |
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.
Working from a user perspective ! Bravo !
Label: Pending test confirmation |
@kuzmany please solve conflicts ;) |
This is from mautic/mautic#5995
👍 |
I tested this PR in Gitpod as described. Worked as expected. Only one comment - exporting a single contact is still possible. |
PHPSTAN issues needing to be addressed here @escopecz - and still need to bump the coverage. Any chance @fedys or @dongilbert might be able to help with that? |
I think the new checkbox should say "Export access: enable" instead of "Export access: disable". I understand it is done because the "enable" option would require a migration or wait for Mautic 5 that allows for some small BC change, but I suggest to do it right instead of do it easy. |
@escopecz It would be nice suggest it once If it's actual, not 3 years after. It's really getting frustrating to contribute to the community |
@kuzmany I know and I also suffer from the lack of testers. I commented with the same a year ago but that is still a couple years late. I have a plan how to improve this in the future and spend more time here. 🤞 |
OMG, Since 2018 we are discussing this feature ( to restrict user from export) I have more than, 25000 Contact in Mautic, and any of my user can easily can export them. Guys, this is a Very Import Feature. When it will come ? @kuzmany @escopecz @RCheesley |
@medsun88 as you see this is PR and you can use it. It come to stable version once when it will be approve by team/community/volunteers, finish unit tests, resolve CI checks etc etc. |
@kuzmany needs some PHPSTAN attention here & the additional test coverage - would be really nice if we can aim to get this into Mautic 5 if it's BC as @escopecz suggests. I am inclined to agree that checking something should be in the affirmative, so if this means it needs to be held to 5.x that is what we should do. Really appreciate that this is a really old PR and a pain to have to come back to after so long! |
This pull request has been mentioned on Mautic Community Forums. There might be relevant details there: https://forum.mautic.org/t/how-to-restrict-users-to-export-contact-from-mautic/22845/8 |
@RCheesley we build PR without BC. The suggestions from @escopecz will make BC. |
getting error while clearing cacheIn RegisterListenersPass.php line 111: Class "Mautic\LeadBundle\EventListener\SegmentFiltersSubscriber" used for service "mautic.lead.subscriber. Check screenshot |
Reviewers, pls look into this for release. Its been long for such a critical feature. |
@xcellenceit it's not waiting for reviewers but for the rebase and addressing the reported issue |
I understand everybody wants this features as soon as possible (me included) as it is critical. However, from a UX standpoint, I strongly agree with @escopecz. We should not change the logic of the checkboxes:
It can be a BC Break with v5 now. So we don't need to do a migration. I assume the admin role will get the permission anyway. |
@kuzmany, @escopecz |
Close favor to M5 version #12884 |
All guys please test updated version for M5 #12884 (unit tests added later) |
I am using Mautic v4.4.12 |
Please be sure you are submitting this against the staging branch.
Description:
Added new permission for export in form results. This PR not require migrations, exports are default enable. This permission give ability disable export permission for Contacts, Forms, Reports.
Steps to test this PR: