Patch level : 4.0

Files correlati     : ba1
Ricompilazione Demo : [ ]
Commento            :
Nella gestione utente NON rende piu' obbligatoria la password sui gruppi
(campo inaccessibile)


git-svn-id: svn://10.65.10.50/trunk@15200 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2007-04-10 09:19:15 +00:00
parent 35c81b9e16
commit 898b547350
4 changed files with 5 additions and 8 deletions

View File

@ -1,5 +1,3 @@
#include <time.h>
#include <applicat.h>
#include <progind.h>
#include <recarray.h>

View File

@ -427,7 +427,7 @@ bool TSet_user_passwd::password_handler(TMask_field& f, KEY key)
{
bool ok = true;
if (key == K_ENTER && !f.mask().query_mode())
if (key == K_ENTER && f.active() && !f.mask().query_mode())
{
const TString& pwd = f.get();
const int pwdlen = pwd.len();
@ -475,7 +475,7 @@ bool TSet_users::tree_handler(TMask_field& f, KEY key)
TSheet_field& sf = m.sfield(F_PROPERTIES);
const TString& old = m.get(F_APPLICAT);
if (old.not_empty())
if (old.full())
{
menu->properties(old) = sf.rows_array();
@ -606,7 +606,6 @@ void TSet_user_passwd::enable_aut()
const int module = _im->get_module_by_order(i+uns);
TToken_string& riga = sf.row(i);
if (module == BAAUT)
{
sf.disable_cell(i,1);
riga.add("X",1);
@ -677,7 +676,6 @@ bool TSet_users::user_create()
sf.set_notify(k_notify);
const char* menuname = "bamenu.men";
_tree = new TMenu(menuname);
_msk->set_handler(F_PERMESSI, tree_handler);
_msk->tfield(F_PERMESSI).set_tree(_tree);

View File

@ -21,6 +21,7 @@ BEGIN
FIELD ISGROUP
GROUP G_SUPERUSER
KEY 1
FLAGS "G"
END
STRING F_USER 16

View File

@ -584,9 +584,9 @@ bool TInstaller_mask::can_install(const char* module, TInstall_ini& ini)
#endif
TAuto_token_string altri(ini.get("Moduli", module));
if (stricmp(module, "sy") != 0) //SY e' indipendente dagli altri moduli
if (xvt_str_compare_ignoring_case(module, "sy") != 0) //SY e' indipendente dagli altri moduli
{
if (stricmp(module, "ba") != 0 && altri.get_pos("ba") < 0)
if (xvt_str_compare_ignoring_case(module, "ba") != 0 && altri.get_pos("ba") < 0)
altri.add("ba");
}