Skip to content
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

Restrict actions of the marketplace based on sets of permissions #849

Closed
mahmoudimus opened this issue Dec 18, 2013 · 4 comments
Closed

Comments

@mahmoudimus
Copy link
Contributor

User Feature:

If I use an API key that can't create debits, I shouldn't be able to create debits on my marketplace.

@mjallday
Copy link
Contributor

This will block on balanced/balanced-api#290 but we can build this into the app right now.

Let's assume that the auth server will return a list of permissions and these permissions will reflect actions available to the dashboard. By parsing this list of permissions the dashboard should be able to toggle the buttons and other UI features available to the end user so they do not try and perform operations that they are not allowed to do.

In the balanced application we generate enumerate permissions by controller and then an action on the controller. For example: debit.create, debit.index, debit.delete, debit.update.

We can begin implementing such a system by writing or integrating a small framework that will toggle functionality by checking for a required permission on the selected marketplace or user.

@mjallday
Copy link
Contributor

@daliwali @tarunc @tomdale does Ember.js have a standardized way of using permissions to toggle functionality? There's a few hits on the Google but nothing baked into the core yet from the looks of it.

@tarunc
Copy link
Contributor

tarunc commented Feb 4, 2014

Good article http://livsey.org/blog/2012/10/16/writing-a-helper-to-check-permissions-in-ember-dot-js/ on this.
Also https://github.com/heartsentwined/ember-auth

Seems like we will need to do some version of: {{#can 'createCredit'}}...{{/can}}

@dmdj03
Copy link

dmdj03 commented May 5, 2014

#1012

@dmdj03 dmdj03 closed this as completed May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants