summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/ServiceProvider/GroupProvider.php5
-rw-r--r--app/constants.php3
2 files changed, 7 insertions, 1 deletions
diff --git a/app/ServiceProvider/GroupProvider.php b/app/ServiceProvider/GroupProvider.php
index dff4b23a..b222b218 100644
--- a/app/ServiceProvider/GroupProvider.php
+++ b/app/ServiceProvider/GroupProvider.php
@@ -26,7 +26,10 @@ class GroupProvider implements ServiceProviderInterface
public function register(Container $container)
{
$container['groupManager'] = new GroupManager;
- $container['groupManager']->register(new DatabaseBackendGroupProvider($container));
+
+ if (DB_GROUP_PROVIDER) {
+ $container['groupManager']->register(new DatabaseBackendGroupProvider($container));
+ }
if (LDAP_AUTH && LDAP_GROUP_PROVIDER) {
$container['groupManager']->register(new LdapBackendGroupProvider($container));
diff --git a/app/constants.php b/app/constants.php
index be9bb6a7..1740494e 100644
--- a/app/constants.php
+++ b/app/constants.php
@@ -23,6 +23,9 @@ defined('DB_HOSTNAME') or define('DB_HOSTNAME', 'localhost');
defined('DB_NAME') or define('DB_NAME', 'kanboard');
defined('DB_PORT') or define('DB_PORT', null);
+// Database backend group provider
+defined('DB_GROUP_PROVIDER') or define('DB_GROUP_PROVIDER', true);
+
// LDAP configuration
defined('LDAP_AUTH') or define('LDAP_AUTH', false);
defined('LDAP_SERVER') or define('LDAP_SERVER', '');