Skip to content

Add permission system #301

@m4tx

Description

@m4tx

We already have some simple auth, but we also need some sort of permission system that would allow checking if a user has sufficient permissions to access specific resources. The idea is probably something in the lines of check(user, object, action) pattern, but there are several open questions:

  • How should we define actions and how much of this could be automated?
  • How should we store the permissions in the database?
  • Should we support some sort of groups (think "Moderators", "Admins", "Reviewers", etc.)? Should we support storing them (along with the permissions) in the database/hardcoded in the server binary/both?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions