Commit 29fe01d2 authored by andriy.stabryn's avatar andriy.stabryn
Browse files

4.1 version

parent bf43972e
......@@ -87,6 +87,7 @@ class CRM_CiviMobileAPI_Api_CiviMobileCustomFields_Get extends CRM_CiviMobileAPI
'name' => $customGroup['name'],
'title' => $customGroup['title'],
'style' => $customGroup['style'],
'weight' => $customGroup['weight'],
'is_multiple' => $customGroup['is_multiple'],
'custom_fields' => [],
];
......
......@@ -9,7 +9,7 @@ The **CiviMobileAPI** extension (`com.agiliway.civimobileapi`) is a CiviCRM comp
[CiviMobile](https://civimobile.org) Features:
- **Graphical Calendar** - all the scheduled information is displayed in a graphical calendar on the dashboard on the mobile app;
- **Contacts** - users can view the list of all contacts in the system, add new contacts and edit contact information. A variety of contact information options is available including several phone numbers, websites, social media profiles, etc.;
- **Contacts** - users can view the list of all contacts in the system, add new contacts and edit contact information. A variety of contact information options is available including several phone numbers, websites, social media profiles, etc. The app supports custom fields that are configured in CiviCRM
- **Membership** – users can access and renew their membership
- **Contributions** – access to the history of all contributions, aggregated total and average payments.
- **Relationships** – users can create a relationship between oneself and other individuals or organizations and optionally set a start date and end date for the relationship
......@@ -21,7 +21,7 @@ The **CiviMobileAPI** extension (`com.agiliway.civimobileapi`) is a CiviCRM comp
- **Push-notifications** - notifications about the updates in the system are displayed on the dashboard of the mobile phone
- **Working Offline** - can work in the offline mode
- **Settings** – users can configurate a set of parameters customizing the view and work of the application
- **6 locales** - English, German, French, Italian, Spanish and Dutch
- **7 locales** - currently, supports 7 locales: English, German, French, Italian, Dutch, Hungarian and Ukrainian
More details about how to install CiviMobileAPI extension and start using CiviMobile can be found at official CiviMobile website [https://civimobile.org](https://civimobile.org).
......
......@@ -35,7 +35,8 @@ function civicrm_api3_civi_mobile_permission_get() {
$accessCiviContribute = CRM_Core_Permission::check('access CiviContribute');
$editContributions = CRM_Core_Permission::check('edit contributions');
$deleteInCiviContribute = CRM_Core_Permission::check('delete in CiviContribute');
$accessToProfileListings = CRM_Core_Permission::check('profile listings and forms');
$accessToProfileListings = CRM_Core_Permission::check('profile listings and forms');
$accessAllCustomData = CRM_Core_Permission::check('access all custom data');
$canCheckInOnEvent = CRM_Core_Permission::check(CRM_CiviMobileAPI_Utils_Permission::CAN_CHECK_IN_ON_EVENT);
$permissions['access'] = [
......@@ -217,6 +218,17 @@ function civicrm_api3_civi_mobile_permission_get() {
'delete' => CRM_CiviMobileAPI_Utils_Permission::isEnoughPermissionForDeleteContactGroup() ? 1 : 0,
];
$permissions['custom_fields'] = [
'view' => [
'all' => $accessToCiviCrm && $viewMyContact && ($viewAllContacts || $editAllContacts) && $accessAllCustomData ? 1 : 0,
'my' => $accessToCiviCrm && $viewMyContact && $accessAllCustomData ? 1 : 0,
],
'edit' => [
'all' => $accessToCiviCrm && $viewMyContact && $editAllContacts && $accessAllCustomData ? 1 : 0,
'my' => $accessToCiviCrm && $viewMyContact && ($editMyContact || $editAllContacts) && $accessAllCustomData ? 1 : 0,
],
];
$nullObject = CRM_Utils_Hook::$_nullObject;
CRM_Utils_Hook::singleton()
->commonInvoke(1, $permissions, $nullObject, $nullObject, $nullObject, $nullObject, $nullObject, 'civimobile_permission', '');
......
......@@ -232,7 +232,8 @@ function civimobileapi_civicrm_alterAPIPermissions($entity, $action, &$params, &
($entity == 'civi_mobile_active_relationship' and $action == 'get') ||
($entity == 'civi_mobile_allowed_activity_types' and $action == 'get') ||
($entity == 'civi_mobile_contribution_statistic') ||
($entity == 'state_province' and $action == 'get')
($entity == 'state_province' and $action == 'get') ||
($entity == 'civi_mobile_custom_fields' and $action == 'get')
) {
$params['check_permissions'] = FALSE;
}
......
......@@ -14,7 +14,7 @@
<url desc="Support">https://agiliway.com</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2019-08-30</releaseDate>
<releaseDate>2019-07-17</releaseDate>
<version>4.1</version>
<develStage>stable</develStage>
<compatibility>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment