From cbebed918860e47bc96ac5367f86d0897a6842ca Mon Sep 17 00:00:00 2001 From: "Cody B. Daig" Date: Sat, 8 Aug 2015 18:40:59 -0700 Subject: [PATCH] Allow Guests to view Articles --- .../client/config/articles.client.routes.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/articles/client/config/articles.client.routes.js b/modules/articles/client/config/articles.client.routes.js index df7024c4c2..f67a047f76 100644 --- a/modules/articles/client/config/articles.client.routes.js +++ b/modules/articles/client/config/articles.client.routes.js @@ -8,10 +8,7 @@ angular.module('articles').config(['$stateProvider', .state('articles', { abstract: true, url: '/articles', - template: '', - data: { - roles: ['user', 'admin'] - } + template: '' }) .state('articles.list', { url: '', @@ -19,7 +16,10 @@ angular.module('articles').config(['$stateProvider', }) .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', @@ -27,7 +27,10 @@ angular.module('articles').config(['$stateProvider', }) .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'] + } }); } ]);