JMAConsulting / biz.jmaconsulting.activitytypeacl

This extension provides the ability to restrict activities on CiviCRM by roles with permissions to various activity types.
GNU Affero General Public License v3.0
4 stars 3 forks source link

fix unset index error when run from CLI #6

Closed MegaphoneJon closed 5 years ago

MegaphoneJon commented 5 years ago

When CiviCRM is invoked from the CLI (e.g. with cv) this line gives an error (since $_SERVER['REQUEST_URI'] isn't set when invoked from the CLI). This causes headers to be sent, which in turn can cause other commands not to run.

monishdeb commented 5 years ago

Yes, the patch rightly fixed the error as I confirmed on my local. Merging it now.