This commit is contained in:
acanas 2024-04-20 10:42:55 +02:00
parent 15046b8aff
commit a4d4e9c470
4 changed files with 1503 additions and 1506 deletions

View File

@ -124,8 +124,7 @@ Usr_Can_t Act_CheckIfICanExecuteAction (Act_Action_t Action)
Permission = ActLst_Actions[Action].PermissionDeg;
break;
case Hie_CRS: // Course selected
Permission = (Gbl.Usrs.Me.IBelongToCurrent[Hie_CRS] == Usr_BELONG) ? ActLst_Actions[Action].PermissionCrsIfIBelong :
ActLst_Actions[Action].PermissionCrsIfIDontBelong;
Permission = ActLst_Actions[Action].PermissionCrs[Gbl.Usrs.Me.IBelongToCurrent[Hie_CRS]];
break;
default:
return Usr_CAN_NOT;
@ -423,7 +422,7 @@ void Act_AdjustCurrentAction (void)
the only action possible
is to show a form to send my photo *****/
if (!Gbl.Usrs.Me.MyPhotoExists)
if (!(ActLst_Actions[Gbl.Action.Act].PermissionCrsIfIBelong & (1 << Rol_UNK)))
if (!(ActLst_Actions[Gbl.Action.Act].PermissionCrs[Usr_BELONG] & (1 << Rol_UNK)))
if ((Gbl.Usrs.Me.NumAccWithoutPhoto =
Pho_UpdateMyClicksWithoutPhoto ()) > Pho_MAX_CLICKS_WITHOUT_PHOTO)
{

View File

@ -77,8 +77,7 @@ struct Act_Actions
signed int IndexInMenu;
Tab_Tab_t Tab;
Act_Action_t SuperAction;
unsigned PermissionCrsIfIBelong;
unsigned PermissionCrsIfIDontBelong;
unsigned PermissionCrs[Usr_NUM_BELONG];
unsigned PermissionDeg;
unsigned PermissionCtr;
unsigned PermissionIns;

File diff suppressed because it is too large Load Diff

View File

@ -633,10 +633,11 @@ Me sale este error, no s
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
*/
#define Log_PLATFORM_VERSION "SWAD 23.76.1 (2024-04-19)"
#define Log_PLATFORM_VERSION "SWAD 23.77 (2024-04-19)"
#define CSS_FILE "swad23.67.2.css"
#define JS_FILE "swad23.53.6.js"
/*
Version 23.77: Apr 19, 2024 Code refactoring in list of actions. (335567 lines)
Version 23.76.1: Apr 19, 2024 Code refactoring related to don't belong/belong. (335570 lines)
Version 23.76: Apr 19, 2024 Code refactoring related to don't belong/belong. (335550 lines)
Version 23.75: Apr 13, 2024 Code refactoring related to closed/open. (335484 lines)