mike-marcacci / gandhi

The open source, online grant management system.
GNU Affero General Public License v3.0
36 stars 16 forks source link

Create permissions standard #52

Closed mike-marcacci closed 10 years ago

mike-marcacci commented 10 years ago

Permissions are currently handled by the component, and should continue to be. However, we should provide some helper methods/services/directives for handling them. They should use the following format, which will be calculated similarly to how locks currently work:

"permissions": {
    "read": {
        "staff": true,
        "applicant": {
            "open": ["event1"],
            "close": []
        },
        "council": true,
        "reviewer": true
    },
    "write": {
        "staff": true,
        "applicant": {
            "open": ["event1"],
            "close": ["event2"]
        }
    }
}