Commit 6bebae494908df2af9b2bf078a238e388fbfaf74
1 parent
66a3a7bf
Exists in
master
and in
7 other branches
Correção na listagem de temas restritos para permitir que o usuário master tenha…
… acesso a esses temas
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/login.php
... | ... | @@ -277,9 +277,11 @@ function autenticaUsuario($usuario,$senha){ |
277 | 277 | //echo "select * from ".$esquemaadmin."i3geousr_usuarios where login = '$usuario' and (senha = '$senhamd5' or senha = '$senha') and ativo = 1";exit; |
278 | 278 | //exit; |
279 | 279 | if(verificaMaster($usuario,$senha) == true){ |
280 | + | |
280 | 281 | $pa = pegaDados("select * from ".$esquemaadmin."i3geousr_papelusuario ",$locaplic); |
281 | 282 | $op = pegadados("SELECT O.codigo FROM ".$esquemaadmin."i3geousr_operacoes AS O"); |
282 | - $gr = pegadados("SELECT * from ".$esquemaadmin."i3geousr_grupousuario "); | |
283 | + $gr = pegadados("SELECT * from ".$esquemaadmin."i3geousr_grupos "); | |
284 | + //var_dump($gr);exit; | |
283 | 285 | $operacoes = array(); |
284 | 286 | foreach($op as $o){ |
285 | 287 | $operacoes[$o["codigo"]] = true; | ... | ... |
classesphp/funcoes_gerais.php
... | ... | @@ -2740,6 +2740,7 @@ Lista os grupos ao qual pertence o usuario atualmente logado |
2740 | 2740 | */ |
2741 | 2741 | function listaGruposUsrLogin(){ |
2742 | 2742 | error_reporting(0); |
2743 | + //echo $_COOKIE["i3geocodigologin"];exit; | |
2743 | 2744 | if(empty($_COOKIE["i3geocodigologin"])){ |
2744 | 2745 | return array(); |
2745 | 2746 | } | ... | ... |