Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Permissions in Templates, Rules and Components

$
0
0

@GELight wrote:

Hi all,

What is a good way to test for permissions in ember? In templates, components or controllers there are no problems. Here I can use an IF condition to render my snippet or execute code by set permissions etc…

But what is the best way to use permissions for routes?

For example:

  • The main navigation will rendered in the application template.
  • The token request and the request for my loggedin user and his permissions is asyncrone and will be solved after get the authentication token

I search for a solution what the best way is to test for permissions on routes until the user request is finished to get the permissions.You know what I mean?

Greeings Mario

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles