mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-10 10:45:23 +02:00
335567
This commit is contained in:
parent
15046b8aff
commit
a4d4e9c470
|
@ -124,8 +124,7 @@ Usr_Can_t Act_CheckIfICanExecuteAction (Act_Action_t Action)
|
||||||
Permission = ActLst_Actions[Action].PermissionDeg;
|
Permission = ActLst_Actions[Action].PermissionDeg;
|
||||||
break;
|
break;
|
||||||
case Hie_CRS: // Course selected
|
case Hie_CRS: // Course selected
|
||||||
Permission = (Gbl.Usrs.Me.IBelongToCurrent[Hie_CRS] == Usr_BELONG) ? ActLst_Actions[Action].PermissionCrsIfIBelong :
|
Permission = ActLst_Actions[Action].PermissionCrs[Gbl.Usrs.Me.IBelongToCurrent[Hie_CRS]];
|
||||||
ActLst_Actions[Action].PermissionCrsIfIDontBelong;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return Usr_CAN_NOT;
|
return Usr_CAN_NOT;
|
||||||
|
@ -423,7 +422,7 @@ void Act_AdjustCurrentAction (void)
|
||||||
the only action possible
|
the only action possible
|
||||||
is to show a form to send my photo *****/
|
is to show a form to send my photo *****/
|
||||||
if (!Gbl.Usrs.Me.MyPhotoExists)
|
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 =
|
if ((Gbl.Usrs.Me.NumAccWithoutPhoto =
|
||||||
Pho_UpdateMyClicksWithoutPhoto ()) > Pho_MAX_CLICKS_WITHOUT_PHOTO)
|
Pho_UpdateMyClicksWithoutPhoto ()) > Pho_MAX_CLICKS_WITHOUT_PHOTO)
|
||||||
{
|
{
|
||||||
|
|
|
@ -77,8 +77,7 @@ struct Act_Actions
|
||||||
signed int IndexInMenu;
|
signed int IndexInMenu;
|
||||||
Tab_Tab_t Tab;
|
Tab_Tab_t Tab;
|
||||||
Act_Action_t SuperAction;
|
Act_Action_t SuperAction;
|
||||||
unsigned PermissionCrsIfIBelong;
|
unsigned PermissionCrs[Usr_NUM_BELONG];
|
||||||
unsigned PermissionCrsIfIDontBelong;
|
|
||||||
unsigned PermissionDeg;
|
unsigned PermissionDeg;
|
||||||
unsigned PermissionCtr;
|
unsigned PermissionCtr;
|
||||||
unsigned PermissionIns;
|
unsigned PermissionIns;
|
||||||
|
|
2998
swad_action_list.c
2998
swad_action_list.c
File diff suppressed because it is too large
Load Diff
|
@ -633,10 +633,11 @@ Me sale este error, no s
|
||||||
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
|
"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 CSS_FILE "swad23.67.2.css"
|
||||||
#define JS_FILE "swad23.53.6.js"
|
#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.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.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)
|
Version 23.75: Apr 13, 2024 Code refactoring related to closed/open. (335484 lines)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user