Skip to content

Authorization for UI-Router #840

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from

Conversation

trainerbill
Copy link

option to add authoirze: 'admin' to the state to only allow admin users access to the state.

trainerbill added 2 commits February 19, 2015 15:50
Added authorize param to check if user is admin
added authorize for admin state
@Awk34
Copy link
Member

Awk34 commented Feb 26, 2015

Does this have any upside when compared to what's already being done in app.js?

@trainerbill
Copy link
Author

Not sure what you mean by whats already being don in app.js. This allows you to add an authorize: parameter on the ui-router configuration which requires the user to have a specific role.

trainerbill added 2 commits May 4, 2015 10:29
Changed isActive to look for indexOf if route is not /.  Allows the navbar to highlight correctly for nesed routes.  /admin/account etc.
@Awk34
Copy link
Member

Awk34 commented Jul 6, 2015

@trainerbill sorry I misunderstood what the PR was. Would you please also update the coffescript files and adhere to the Contributing Guidelines?

@Awk34 Awk34 added this to the 2.3.0 milestone Jul 15, 2015
@Awk34
Copy link
Member

Awk34 commented Sep 14, 2015

Closed due to inactivity.

@Awk34 Awk34 closed this Sep 14, 2015
@kingcody kingcody reopened this Sep 14, 2015
@kingcody kingcody closed this Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants