projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be23f12
)
CRM-16526 CIVI-3 Added exception for creating line item / contribution if even one...
author
Edsel
<edsel.lopez@jmaconsulting.biz>
Tue, 16 Feb 2016 11:31:50 +0000
(17:01 +0530)
committer
Pradeep Nayak
<pradpnayak@gmail.com>
Mon, 22 Feb 2016 18:11:38 +0000
(23:41 +0530)
----------------------------------------
* CRM-16526: ACLs for Financial Types
https://issues.civicrm.org/jira/browse/CRM-16526
api/v3/LineItem.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/LineItem.php
b/api/v3/LineItem.php
index 4badcf3ae9d0cc62f8c3d1dd1229b26bfb5cd938..463aab2b8888e32463ed8ebf25619033a48a4fc9 100644
(file)
--- a/
api/v3/LineItem.php
+++ b/
api/v3/LineItem.php
@@
-63,7
+63,9
@@
function civicrm_api3_line_item_create($params) {
$params = CRM_Contribute_BAO_Contribution::checkTaxAmount($params, TRUE);
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
- return civicrm_api3_create_success(array());
+ else {
+ throw new API_Exception('You do not have permission to create this line item');
+ }
}
/**