Skip to content

Commit 0b12b3a

Browse files
troca boleanos nas configs
1 parent d1df913 commit 0b12b3a

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

app/Ldap/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static function addMember(LdapUser $user, array $groups)
5151

5252
$groups = array_merge($keep_groups, $groups);
5353

54-
if (config('web-ldap-admin.removeAllGroups')) {
54+
if (config('web-ldap-admin.removeAllGroups') == 'yes') {
5555
$user->removeAllGroups();
5656
}
5757

app/Ldap/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public static function criarOuAtulizarPorArray($pessoa, $metodo = '')
441441
}
442442

443443
// Se a sincronização dos grupos com o replicado for desativada, vamos mandar esse array vazio
444-
if (config('web-ldap-admin.syncGroupsWithReplicado') == 0) {
444+
if (config('web-ldap-admin.syncGroupsWithReplicado') == 'no') {
445445
$grupos = [];
446446
}
447447

config/web-ldap-admin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
'notRemoveGroups' => env('NOT_REMOVE_GROUPS', 'LOCAL_ADMIN,STI'),
1818

1919
# Sincronizar grupos com replicado
20-
# 0 - não sincroniza grupos ; 1 - sincroniza grupos
21-
'syncGroupsWithReplicado' => env('SYNC_GROUPS_WITH_REPLICADO', 1),
20+
'syncGroupsWithReplicado' => env('SYNC_GROUPS_WITH_REPLICADO', 'yes'),
2221

2322
# No login ou na sincronização remover todos grupos, excetos
2423
# os que estão em notRemoveGroups.
25-
# 0 - não remover todos grupo, 1 - remover todos grupos
26-
'removeAllGroups' => env('REMOVE_ALL_GROUPS',0),
24+
'removeAllGroups' => env('REMOVE_ALL_GROUPS','no'),
2725

2826
# 0 = ninguém, 1 = todos, 2 = servidores (funcionários e docentes)
2927
'solicitaContaAdmin' => env('SOLICITA_CONTA_ADMIN', 0),

0 commit comments

Comments
 (0)