The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Développement de WIMS
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Listes Sympa

Forum: developers

Monitor Forum | Start New Thread Start New Thread
RE: abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-27 09:51
I better checked.

My previous correction had a problem that I tried to fix with r10918
(please check!)

Please note that I tried everything with groupments, not with portals.

In groupment, we now have 4 possibilities:

1) the groupement supervisor, who has supervisor authority on all the

in wims you get it with


(and wims_realuser=supervisor is not really needed, but does not harm,
does it?)

This is what you get if you connect to the superclass with adm/raw

that is qclass=2690827&quser=supervisor

2) a teacher logging in as a teacher in a superclass

you should have


the wims_realuser variable is needed otherwise the access to the
subclasses is not granted (the links are not shown)

This is what you get if you connect to the superclass with adm/raw
(with r10918)

that is qclass=2690827&quser=marina_cazzola

3) a teacher logging in as a supervisor in a subclass

you should have


You get more or less this via adm/raw if with the call

that is qclass=2690827_1&quser=supervisor

adm/raw does not set the wims_realuser=marina_cazzola (and should not
set wims_realuser=supervisor either) so when the user tries to get to
the superclass he is asked for the supervisor password (that is he is
denied supervisor access to the superclass, which I think is good!)

(in other words, wims_realuser=marina_cazzola is needed only to log in
to the superclass)

4) a teacher loggin as a student in a subclass


This is what you get if you connect to the superclass with adm/raw

that is qclass=2690827_1&quser=marina_cazzola

(with wims_realuser set, the teacher has access to the superclass
page, with all the links to log in again to the subclasses)

Did I miss something?


RE: abut r10905 [ Reply ]
By: Olivier Bado on 2016-08-26 12:12
In Jalon, supervisor is also connecting via adm/raw...

RE: abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-26 09:25


I added the line


that is copying the line


(so wims_user=wims_realuser, but as supervisor does not login via adm/raw it should be ok, shouldn't it?)

RE: abut r10905 [ Reply ]
By: Bernadette Perrin-Riou on 2016-08-26 09:06
in a superclass, wims_user is supervisor and wims_realuser is the login of the teacher.
In case of a student, wims_realuser should be by default wims_user or not used.


abut r10905 [ Reply ]
By: Marina Cazzola on 2016-08-26 09:03
I'm not sure if that is the right place to make the correction.

In the home page of a superclass the list of classes is not shown unless the variable wims_realuser is set. Maybye such variable should be set in some other place.

I'm not sure I understand the difference between wims_user and wims_realuser