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 Aug 30, 2021. It is now read-only.
I am using meanjs to build a CMS-kindathing, so I would need to seperated the views into backend and frontend and I have issues on how to react when a user is not signed in.
How would a show a menu-item, like Articles to anyone but something like create Article only to a logged-in user.
I am now also able to get to the #!/articles/create page even though I am not logged in - I'm not able to save anything, but how would I redirect the not-logged in User to the signin-page in the first place.
The text was updated successfully, but these errors were encountered:
the first issue is solvable using the menu service: http://meanjs.org/docs.html#menus you can choose to show an item to unauthorized users using the isPublic property. The next issue is a bit trickier, the simplest solution is to validate user authentication in the view controller, and redirect the user back to the login page.
For your next development questions it would help us a lot if you use the google group: https://groups.google.com/forum/#!forum/meanjs we try to keep the issue tracker for bug reports and feature requests only.
I am using meanjs to build a CMS-kindathing, so I would need to seperated the views into backend and frontend and I have issues on how to react when a user is not signed in.
How would a show a menu-item, like
Articles
to anyone but something likecreate Article
only to a logged-in user.I am now also able to get to the
#!/articles/create
page even though I am not logged in - I'm not able to save anything, but how would I redirect the not-logged in User to the signin-page in the first place.The text was updated successfully, but these errors were encountered: