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

Commit

Permalink
Merge pull request #781 from codydaig/bug/listArticlesAuth
Browse files Browse the repository at this point in the history
Allow Guests to view Articles
  • Loading branch information
lirantal committed Aug 12, 2015
2 parents 3064b28 + cbebed9 commit 0be1b11
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/articles/client/config/articles.client.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,29 @@ angular.module('articles').config(['$stateProvider',
.state('articles', {
abstract: true,
url: '/articles',
template: '<ui-view/>',
data: {
roles: ['user', 'admin']
}
template: '<ui-view/>'
})
.state('articles.list', {
url: '',
templateUrl: 'modules/articles/views/list-articles.client.view.html'
})
.state('articles.create', {
url: '/create',
templateUrl: 'modules/articles/views/create-article.client.view.html'
templateUrl: 'modules/articles/views/create-article.client.view.html',
data: {
roles: ['user', 'admin']
}
})
.state('articles.view', {
url: '/:articleId',
templateUrl: 'modules/articles/views/view-article.client.view.html'
})
.state('articles.edit', {
url: '/:articleId/edit',
templateUrl: 'modules/articles/views/edit-article.client.view.html'
templateUrl: 'modules/articles/views/edit-article.client.view.html',
data: {
roles: ['user', 'admin']
}
});
}
]);

0 comments on commit 0be1b11

Please sign in to comment.