summaryrefslogtreecommitdiffstats
path: root/lib/Service/ConfigService.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-05-30 12:42:20 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-05-30 12:42:20 -0100
commit4a4dc5ea6da55485babd8b46a251ab0c0970ed15 (patch)
tree46f0d013b39206ee5bbde3d5a1aa368950ba52fa /lib/Service/ConfigService.php
parentb90a54a3cfd73ef7469f607d9cd2713ac05896d2 (diff)
adding command to manage access rights
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service/ConfigService.php')
-rw-r--r--lib/Service/ConfigService.php17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php
index cdfee8e3..cf747f6f 100644
--- a/lib/Service/ConfigService.php
+++ b/lib/Service/ConfigService.php
@@ -54,6 +54,8 @@ class ConfigService {
const SOCIAL_ADDRESS = 'address';
const SOCIAL_SERVICE = 'service';
const SOCIAL_MAX_SIZE = 'max_size';
+ const SOCIAL_ACCESS_TYPE = 'access_type';
+ const SOCIAL_ACCESS_LIST = 'access_list';
const BACKGROUND_CRON = 1;
const BACKGROUND_ASYNC = 2;
@@ -62,11 +64,20 @@ class ConfigService {
/** @var array */
public $defaults = [
- self::SOCIAL_ADDRESS => '',
- self::SOCIAL_SERVICE => 1,
- self::SOCIAL_MAX_SIZE => 10
+ self::SOCIAL_ADDRESS => '',
+ self::SOCIAL_SERVICE => 1,
+ self::SOCIAL_MAX_SIZE => 10,
+ self::SOCIAL_ACCESS_TYPE => 'all_but',
+ self::SOCIAL_ACCESS_LIST => '[]'
];
+ /** @var array */
+ public $accessTypeList = [
+ 'BLACKLIST' => 'all_but',
+ 'WHITELIST' => 'none_but'
+ ];
+
+
/** @var string */
private $userId;