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

Support organizational roles #1284

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Commits on Nov 7, 2024

  1. Support user permissions

    Users in our system can be given permission to three kinds of
    organization in the PDC (changemakers, funders, and data providers).
    These associations will allow them access to perform various actions in
    the context of those organizations.
    
    For instance, reading data, writing data, or managing other user
    associations. This list of abilities may change in future.
    
    We explored the concept of `user_roles` with foreign keys to different
    organization types (similar to the sources table) but decided to have
    three separate tables because they are slightly distinct concepts.  For
    instance, there will probably be certain access types that only apply to
    certain types of organization in future.
    
    Another design decision was to have the permissions in terms of granted
    access type rather than higher level role. For instance, instead of
    roles like "administrator" and "editor" we have action oriented roles
    like "read" and "manage".
    
    This provides more granularity and is also more explicit about what
    a given role / access type actually allows.
    
    Issue #1250 Support associations between users and organizational entities
    slifty committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    07da57a View commit details
    Browse the repository at this point in the history