'subName' => 'view',
'isDefault' => TRUE,
),
- array(
+ );
+ if (CRM_Core_Permission::check('add contacts')) {
+ $buttons[] = array(
'type' => 'upload',
'name' => ts('Save and New'),
'spacing' => ' ',
'subName' => 'new',
- ),
- array(
- 'type' => 'cancel',
- 'name' => ts('Cancel'),
- ),
+ );
+ }
+ $buttons[] = array(
+ 'type' => 'cancel',
+ 'name' => ts('Cancel'),
);
if (!empty($this->_values['contact_sub_type'])) {