You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 2, 2020. It is now read-only.
I need to be able to selectively load routes based on a user's role or permission. For instance only admin's can load the edit-users page, or only user's with a permission of 'create-page' can go to the create-new-page page.
Could you create a way to allow us to override custom preroutes? Perhaps calling your current preroutes method as a helper?
The text was updated successfully, but these errors were encountered:
then Test User permission and link accordingly if (user.permission==="root"){ window.f7.mainView.loadPage('/create-page/true'); else{window.f7.mainView.loadPage(/create-page/false)}
not perfect and very enhanceable but you get the point.
I need to be able to selectively load routes based on a user's role or permission. For instance only admin's can load the edit-users page, or only user's with a permission of 'create-page' can go to the create-new-page page.
Could you create a way to allow us to override custom preroutes? Perhaps calling your current preroutes method as a helper?
The text was updated successfully, but these errors were encountered: