learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
811 stars 684 forks source link

Proper redirect of a user without permissions to see a certain page #12820

Open pcenov opened 1 week ago

pcenov commented 1 week ago

Observed behavior

This is a follow-up to https://github.com/learningequality/kolibri/pull/12775 and also the issue is extant in Kolibri 0.17.3

  1. Attempting to view the Learners page as a Learner user results in seeing a blank page, instead of seeing the message "You must be signed in as an admin or coach to view this page":

learners

  1. The 'Go to home page' link is not working for the rest of the pages where it is shown:

https://github.com/user-attachments/assets/3daf33e0-f317-4de6-bebf-788f063cac63

Expected behavior

Proper redirect of a user without permissions to view a certain page.

Steps to reproduce the issue

  1. Install the build from https://github.com/learningequality/kolibri/pull/12775
  2. Go to Coach > Class home as a Coach
  3. Sign out and sign in as a Learner
  4. Attempt to view any of the Coach pages (or other pages not accessible to a Learner)

Usage Details

Windows 11, Ubuntu 22 - Chrome

pcenov commented 1 week ago

@radinamatic

rtibbles commented 1 week ago

I think this is a duplicate of https://github.com/learningequality/kolibri/issues/12442, but leaving this open as it has more explicit path to replication.