From fc55bc5148f58bdbdcf3addb1a1383e994bf9c00 Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>
Date: Thu, 21 Feb 2013 14:27:20 -0500
Subject: [PATCH] Add configuration option 'specials' to hide specials 'anyone' and 'anonymous' from the ACL configuration dialog

---
 plugins/acl/config.inc.php.dist |    2 ++
 plugins/acl/acl.php             |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php
index 5ae9e4e..ffaa51b 100644
--- a/plugins/acl/acl.php
+++ b/plugins/acl/acl.php
@@ -148,6 +148,7 @@
 
         // Load localization and include scripts
         $this->load_config();
+        $this->specials = $this->rc->config->get('acl_specials', $this->specials);
         $this->add_texts('localization/', array('deleteconfirm', 'norights',
             'nouser', 'deleting', 'saving'));
         $this->include_script('acl.js');
diff --git a/plugins/acl/config.inc.php.dist b/plugins/acl/config.inc.php.dist
index f957a23..6a9c3a5 100644
--- a/plugins/acl/config.inc.php.dist
+++ b/plugins/acl/config.inc.php.dist
@@ -16,4 +16,6 @@
 // The LDAP search filter will be &'d with search queries
 $rcmail_config['acl_users_filter'] = '';
 
+$rcmail_config['acl_specials'] = array();
+
 ?>

--
Gitblit v1.9.1