Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

CMS - Frontend+Backend #79

Closed
akuales opened this issue May 31, 2014 · 1 comment
Closed

CMS - Frontend+Backend #79

akuales opened this issue May 31, 2014 · 1 comment

Comments

@akuales
Copy link

akuales commented May 31, 2014

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.

@amoshaviv
Copy link
Contributor

Hi @akuales,

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.

Thank you,
Amos

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants