Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Problems with permissions and groups for Admins #69

Closed
Silom opened this issue Feb 19, 2015 · 1 comment
Closed

Problems with permissions and groups for Admins #69

Silom opened this issue Feb 19, 2015 · 1 comment
Labels

Comments

@Silom
Copy link

Silom commented Feb 19, 2015

Hey,
I'm about to add permissions and groups to ngFrame, but there is one problem.

In Drywall, according to the schemas you have an Array of groups and permissions.
In Frame you can push whatever to permissions and the groups are not an array after all.
I also don't see a way to update/delete permissions.

So what I actually want:

/admins/{id}/permissions:

A way to delete and update (update for permit true/false).
A solid schema, so I cant override the permission array and add any attributes.

/admins/{id}/groups:

Should be an array, is an object and can also be overridden (this could be anything groups: Joi.object().required()).

If you got any questions ask me any time :)

@jedireza
Copy link
Owner

Yeah the models are a bit different in Frame than in Drywall. Essentially we just want an object where the keys are the permissions and the values are booleans (true if permitted and false otherwise).

{
    MAY_LAUGH: true,
    MAY_TELL_JOKES: false
}

If you haven't checked out Aqua, please do. It started as Frame and is implemented with React and Flux.

Don't let Frame get in your way. Feel free to change it to best suit your needs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants