forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeatures.php
More file actions
110 lines (93 loc) · 2.47 KB
/
features.php
File metadata and controls
110 lines (93 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?php
/**
* Feature Config
*
*/
return [
// Determines which features are available in a deployment
// Post views
'views' => [
'data' => true,
'map' => true,
'list' => true,
'chart' => true,
'timeline' => true,
'activity' => true,
'plan' => false,
],
// Data Providers
'data-providers' => [
'email' => true,
'smssync' => true,
'twitter' => true,
'frontlinesms' => true,
'outgoingemail' => true,
'twilio' => true,
'nexmo' => true,
'gmail' => false,
'mteja' => false,
'africastalking' => false,
'httpsms' => false,
'infobip' => false,
],
// Client limits
// Where TRUE is infinite and an integer defines a limit
'limits' => [
'posts' => true,
'forms' => true,
'admin_users' => true,
],
// Private deployments
'private' => [
'enabled' => true,
],
// Disable Registration
'disable_registration' => [
'enabled' => true,
],
// Roles
'roles' => [
'enabled' => true,
],
// Webhooks
'webhooks' => [
'enabled' => true,
],
// Data import
'data-import' => [
'enabled' => true,
],
// Targeted Surveys
'targeted-surveys' => [
'enabled' => false,
],
'csv-speedup' => [
'enabled' => false,
],
// Enable or disable HXL export to HDX
// We will need a new 'hxl-download' flag when we do the HXL downloads for P1
'hxl' => [
'enabled' => true,
],
// Enable or disable User Settings feature
'user-settings' => [
'enabled' => true,
],
// Enable or disable the Anonymisation of Reporters
// Controls whether users can set obfuscation of location, redaction of date/time
// and reporter info
'anonymise-reporters' => [
'enabled' => true,
],
// Enable or disable donations via web monetizations
'donation' => [
'enabled' => true
],
// Enable or disable Gmail Support
// Controls whether the users can set gmail credentials through the datasource config
// true: Gmail API credentials are provided via system environment (GMAIL_CLIENT_ID and GMAIL_CLIENT_SECRET)
// false: Credentials expected via the datasource configuration API
'gmail-support' => [
'enabled' => filter_var(getenv('GMAIL_SUPPORT_PROVIDED'), FILTER_VALIDATE_BOOLEAN) ?? false
]
];