mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-01 06:15:31 +02:00
Version 16.195.7
This commit is contained in:
parent
6027941e92
commit
8cb3870e32
|
@ -223,13 +223,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.195.6 (2017-04-29)"
|
#define Log_PLATFORM_VERSION "SWAD 16.195.7 (2017-04-29)"
|
||||||
#define CSS_FILE "swad16.193.4.css"
|
#define CSS_FILE "swad16.193.4.css"
|
||||||
#define JS_FILE "swad16.181.js"
|
#define JS_FILE "swad16.181.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 16.195.7: Apr 29, 2017 Fixed bug in tabs. (218511 lines)
|
||||||
Version 16.195.6: Apr 29, 2017 Code refactoring in edition of groups. (218507 lines)
|
Version 16.195.6: Apr 29, 2017 Code refactoring in edition of groups. (218507 lines)
|
||||||
Version 16.195.5: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)
|
Version 16.195.5: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)
|
||||||
Version 16.195.4: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)
|
Version 16.195.4: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)
|
||||||
|
|
25
swad_tab.c
25
swad_tab.c
|
@ -171,23 +171,26 @@ static bool Tab_CheckIfICanViewTab (Tab_Tab_t Tab)
|
||||||
case TabUnk:
|
case TabUnk:
|
||||||
return false;
|
return false;
|
||||||
case TabSys:
|
case TabSys:
|
||||||
return (Gbl.CurrentCty.Cty.CtyCod <= 0);
|
return (Gbl.CurrentCty.Cty.CtyCod <= 0); // No country selected
|
||||||
case TabCty:
|
case TabCty:
|
||||||
return (Gbl.CurrentCty.Cty.CtyCod > 0 &&
|
return (Gbl.CurrentCty.Cty.CtyCod > 0 && // Country selected
|
||||||
Gbl.CurrentIns.Ins.InsCod <= 0);
|
Gbl.CurrentIns.Ins.InsCod <= 0); // No institution selected
|
||||||
case TabIns:
|
case TabIns:
|
||||||
return (Gbl.CurrentIns.Ins.InsCod > 0 &&
|
return (Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
|
||||||
Gbl.CurrentCtr.Ctr.CtrCod <= 0);
|
Gbl.CurrentCtr.Ctr.CtrCod <= 0); // No centre selected
|
||||||
case TabCtr:
|
case TabCtr:
|
||||||
return (Gbl.CurrentCtr.Ctr.CtrCod > 0 &&
|
return (Gbl.CurrentCtr.Ctr.CtrCod > 0 && // Centre selected
|
||||||
Gbl.CurrentDeg.Deg.DegCod <= 0);
|
Gbl.CurrentDeg.Deg.DegCod <= 0); // No degree selected
|
||||||
case TabDeg:
|
case TabDeg:
|
||||||
return (Gbl.CurrentDeg.Deg.DegCod > 0 &&
|
return (Gbl.CurrentDeg.Deg.DegCod > 0 && // Degree selected
|
||||||
Gbl.CurrentCrs.Crs.CrsCod <= 0);
|
Gbl.CurrentCrs.Crs.CrsCod <= 0); // No course selected
|
||||||
case TabCrs:
|
case TabCrs:
|
||||||
return (Gbl.CurrentCrs.Crs.CrsCod > 0);
|
return (Gbl.CurrentCrs.Crs.CrsCod > 0); // Course selected
|
||||||
|
case TabAss:
|
||||||
|
return (Gbl.CurrentCrs.Crs.CrsCod > 0 || // Course selected
|
||||||
|
Gbl.Usrs.Me.LoggedRole >= Rol_STUDENT);// Surveys not available for unknown users and guests
|
||||||
case TabFil:
|
case TabFil:
|
||||||
return (Gbl.CurrentIns.Ins.InsCod > 0);
|
return (Gbl.CurrentIns.Ins.InsCod > 0); // Institution selected
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user