learningequality / kolibri

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

route- or action-based client-side permission middleware #2188

Closed indirectlylit closed 6 years ago

indirectlylit commented 7 years ago

A lot of the logic we have for dealing with different user types and permissions involves checking user attributes and switching what gets displayed inside vue components.

In certain situations, it might be cleaner to handle this at the action/vuex layer to keep components more single-purpose. Potentially something to think about when migrating to vuex2.

cc @jonboiser @rtibbles

migrated from https://trello.com/c/zTyFEtMb/800-design-implement-route-or-action-based-handling-of-various-user-types

indirectlylit commented 6 years ago

our error handling logic, particularly with permissions, has been improved recently. closing as wontfix