From 7830aae18f4da05731166a17faa161a047b8383a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 4 Jul 2016 10:46:32 +0200 Subject: [PATCH] Version 15.240.4 --- swad_changelog.h | 2 +- swad_web_service.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/swad_changelog.h b/swad_changelog.h index ec3085940..d9efef5b6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -145,7 +145,7 @@ // 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 /* - Version 15.240.4: Jul 04, 2015 Fixed bugs in web service, reported by Rubén Martín Hidalgo. (203589 lines) + Version 15.240.4: Jul 04, 2015 Fixed bugs in web service, reported by Rubén Martín Hidalgo. (203592 lines) Version 15.240.3: Jul 04, 2015 N.A. year is shown at foot in edition of courses. (? lines) Version 15.240.2: Jul 02, 2015 Fixed bug in edition of courses. (203548 lines) Version 15.240.1: Jul 02, 2015 Fixed bug in web service. (203539 lines) diff --git a/swad_web_service.c b/swad_web_service.c index ee21c1973..4aa4a5a98 100644 --- a/swad_web_service.c +++ b/swad_web_service.c @@ -156,6 +156,7 @@ static const char *Svc_Functions[1+Svc_NUM_FUNCTIONS] = "findUsers", // 25 }; +/* Web service roles (they do not match internal swad-core roles) */ #define Svc_NUM_ROLES 4 typedef enum { @@ -165,6 +166,7 @@ typedef enum Svc_ROLE_TEACHER = 3, // Teacher in current course } Svc_Role_t; +/* Translation from service-web-role to swad-core-role */ Rol_Role_t Svc_SvcRole_to_RolRole[Svc_NUM_ROLES] = { Rol_UNKNOWN, // Svc_ROLE_UNKNOWN @@ -173,6 +175,7 @@ Rol_Role_t Svc_SvcRole_to_RolRole[Svc_NUM_ROLES] = Rol_TEACHER, // Svc_ROLE_TEACHER }; +/* Translation from swad-core-role to service-web-role */ Svc_Role_t Svc_RolRole_to_SvcRole[Rol_NUM_ROLES] = { Svc_ROLE_UNKNOWN, // Rol_UNKNOWN