Patch level :2.1 020
Files correlati :ba0.exe Ricompilazione Demo : [ ] Commento : Risolto bug 0000103 Eseguendo il login con utente diverso da quello della sessione precedente, il programma non aggiorna immediatamente i permessi relativi al nuovo utente, bloccandosi al momento dell'esecuzione del primo .exe non autorizzato. git-svn-id: svn://10.65.10.50/trunk@11931 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a134957ee3
commit
f0efcb3946
@ -604,8 +604,16 @@ void TApplication::set_perms()
|
||||
if (err == NOERR)
|
||||
{
|
||||
const TString& aut = users.get("AUTSTR");
|
||||
for (int i = aut.len()-1; i > 0; i--)
|
||||
_user_aut.set(i, aut[i] == 'X');
|
||||
if (aut.blank())
|
||||
{
|
||||
for (int i = 1 ; i < ENDAUT; i++)
|
||||
_user_aut.reset(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = aut.len()-1; i > 0; i--)
|
||||
_user_aut.set(i, aut[i] == 'X');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (err != NOERR && utente == "GUEST")
|
||||
|
Loading…
x
Reference in New Issue
Block a user