Permission in state do nothing
darkterra opened this issue · 1 comments
darkterra commented
Hi,
I do not understand why permissions do not work, but my code is as explained in the wiki.
Anyone with an idea of the mistake I made?
Im using :
- Angular 1.5.11
- Angular-ui-router 1.0.0-beta.3
- Angular-permission 5.2.3
- Angular-permission-ui 5.2.3
here's my code:
This is Working (in view) :
<span>Congrats! You are logged in.</span>
</div>
This is not Working (in config) :
.state('admin.articles', {
url : '/adminArticles',
templateUrl : '../Partial/Admin/adminArticles.html',
data : {
permissions: {
only: ['ADMIN_ARTICLE'],
redirectTo: 'home'
}
}
})
Thanks in Advance!
oleg-demkovych commented
try downgrade ui-router to 0.4.2