-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
CRM-21576 Add a 'send SMS' permission #11590
CRM-21576 Add a 'send SMS' permission #11590
Conversation
On other thing to note. Along the way I fixed a bug with Sending SMS #11589 and I have merged that commit into this branch. Not sure if that is acceptable protocol or not... |
@JKingsnorth - thought you might be interested in this. |
@michaelmcandrew for the upgrade message you have a choice of if you want it to show before the upgrade runs or after the upgrade runs. if you want it to be before the upgrade add it here https://github.com/civicrm/civicrm-core/blob/master/CRM/Upgrade/Incremental/php/FourSeven.php#L43 if you want it after add it here https://github.com/civicrm/civicrm-core/blob/master/CRM/Upgrade/Incremental/php/FourSeven.php#L95 As per the docs here https://docs.civicrm.org/dev/en/latest/framework/upgrade/#incremental-php-files there is the preUpgrade and PostUpgrade message functions |
Thanks for the heads up. |
Hello again. A couple more updates to this PR:
@mattwire - any chance you could have a look? |
Jenkins, test this please |
jenkins, test this please |
@michaelmcandrew I think some git foo will fix jenkins - you have a merge commit in there so try rebasing... [GitScan\Exception\ProcessErrorException] |
I think this is a good change and agree it ought to be in core. |
Oh I just saw Eileen's comment. |
8622e17
to
69b159c
Compare
@eileenmcnaughton and @colemanw - thanks for the feedback. Here is a new commit. Fairly sure it captures the necessary and removes the crap. Lets see what Jenkins has to say. |
I should disclaim my "ought to be in core" comment by saying that IMO CiviSMS should not have ever been put into core in the first place. But since it's there and we're stuck with it for the time being, this permission belongs in core too. |
69b159c
to
63483fe
Compare
@eileenmcnaughton and @colemanw - looks like all tests have passed, finally :) |
thanks @colemanw |
This PR adds a permission to Send SMS. More specifically, it:
All CRM/SMS tests pass (there are only 6 of them!). I am awaiting results from the full (
tests/phpunit --group headless
) test suite but thought I would post this in the meantime.This is a WIP. A couple of things left to do:
Feedback welcome, especially thoughts on stuff I might have overlooked.