Skip to content

Commit

Permalink
troca boleanos nas configs
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagogomesverissimo committed May 13, 2022
1 parent d1df913 commit 0b12b3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Ldap/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function addMember(LdapUser $user, array $groups)

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

if (config('web-ldap-admin.removeAllGroups')) {
if (config('web-ldap-admin.removeAllGroups') == 'yes') {
$user->removeAllGroups();
}

Expand Down
2 changes: 1 addition & 1 deletion app/Ldap/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public static function criarOuAtulizarPorArray($pessoa, $metodo = '')
}

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

Expand Down
6 changes: 2 additions & 4 deletions config/web-ldap-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@
'notRemoveGroups' => env('NOT_REMOVE_GROUPS', 'LOCAL_ADMIN,STI'),

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

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

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

0 comments on commit 0b12b3a

Please sign in to comment.