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

Remove use of deprecated path in function CRM_Event_BAO_Event::checkPermission() #14735

Merged

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Jul 4, 2019

Overview

Switch from deprecated to non deprecated function.

Before

Throws PHP notice and calls getAllPermissions()

After

Calls getAllPermissions() directly.

Technical Details

Per previous work, checkPermissions() should only be called for a specific event ID.

Comments

This permission check seems to hide the "scheduled reminders" tab if you are not an administrator or if you don't have edit permissions on any events. That doesn't really make sense to me - as I don't really see why it should be treated differently to other manageevent tabs? @lcdservices @alifrumin Any thoughts?

@civibot
Copy link

civibot bot commented Jul 4, 2019

(Standard links)

@civibot civibot bot added the master label Jul 4, 2019
@lcdservices
Copy link
Contributor

@mattwire I actually think scheduled reminders should have their own permission. But absent that -- I agree, if you can create an event, you should be able to schedule reminders for it.

@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

OK - I stepped through this in a debugger & agree this is switching to a non-deprecated method to do the same thing

@eileenmcnaughton eileenmcnaughton merged commit e6b7b59 into civicrm:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants