Statemachine Permissions #1

Closed
andrewebdev opened this Issue Jan 5, 2011 · 3 comments

Comments

Projects
None yet
1 participant
Owner

andrewebdev commented Jan 5, 2011

Implement some kind of system to manage permissions in the StateMachine object.

We should be able to specify which users/groups has view/edit permissions for the model instance based on the current state.

We should be able to specify which users/groups can execute certain actions.

Owner

andrewebdev commented Jan 10, 2011

We could specify user permissions using query strings?
I'll need to come up with a couple of examples as soon as I have the time.

Owner

andrewebdev commented Jan 20, 2011

For models that have some kind of author field, we have a Meta property that will contain the name of the field containing the valid user.

class Entry(models.Model, StateMachine):
    author = models.ForeignKey(User)
    content = models.TextField()

    class Meta:
        sm_user = 'author'

@ghost ghost assigned andrewebdev Apr 19, 2011

Owner

andrewebdev commented May 7, 2011

I'm not sure this is required to be built into the statemachine at this time. I've been able to implement various permissions very simply on a view and template level.
For the moment I'll leave it as is, and if we require more complex permissions, then I'll have another look at this.

@andrewebdev andrewebdev closed this May 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment