Skip to content

fix: enables VIDIS login for school admins - #123

Merged
WaldemarPoppCW merged 1 commit into
mainfrom
fix/enable-vidis-login-for-school-admins
Feb 10, 2026
Merged

fix: enables VIDIS login for school admins#123
WaldemarPoppCW merged 1 commit into
mainfrom
fix/enable-vidis-login-for-school-admins

Conversation

@LarsTheGlidingSquirrel

@LarsTheGlidingSquirrel LarsTheGlidingSquirrel commented Jan 27, 2026

Copy link
Copy Markdown
Member

Before: VIDIS login fails for school admins (rolle: 'LEIT')

I think this is the only necessary change. But not 100% sure and did not test it.

@hugotiburtino @kulla Maybe you can have a quick look? But feel free to ignore and let me know if we should forward it to somebody else. ☺️

@hugotiburtino hugotiburtino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should work

@@ -27,7 +27,7 @@ local buildUsername = function()
local checkIfIsTeacher = function()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could change the function name for a more descriptive one, like checkIsNotStudent or allowedToRegister. (Be sure to change all occurrences)

local rawClaims = extractFromClaims('raw_claims');

if 'rolle' in rawClaims then rawClaims.rolle == 'LEHR' else false;
if 'rolle' in rawClaims then rawClaims.rolle == 'LEHR' || rawClaims.rolle == 'LEIT' || rawClaims.rolle == 'TRAE' else false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason why students can't register is due to youtube/google. As expressed in the meetings with VIDIS: if the teacher uses one of these services in one of the their material and the students can't really choose to opt out (since the teacher is practically compelling them to use), the students shouldn't be allowed to login to serlo.

As you see, it would be easier to invert the logic: if user == 'LERN' ...

But that would be just for a cleaner code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the explanation, I did not know. I will notify Chancenwerk about the change.

@WaldemarPoppCW
WaldemarPoppCW merged commit 4a4a9a8 into main Feb 10, 2026
20 checks passed
@WaldemarPoppCW
WaldemarPoppCW deleted the fix/enable-vidis-login-for-school-admins branch February 10, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants