Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Casbin is implemented slightly wrong #146

@SuitablyMysterious

Description

@SuitablyMysterious

Currently (until 063829f), Casbin was implemented to store all user data, not just the user and role it was designed for. To fix this, I have added a separate casbin_users table to allow separation of user permissions and user data.

Required Changes:

  • Change the db_init files to correct the postgres tables
  • Edit the User class to accomodate this
  • Change the API endpoints

Any other suggestions @HippoProgrammer?

Further documentation to follow:

Metadata

Metadata

Labels

C - BackendAffects the backend containerC - DBAffects the database containerF - TestingThis issue was found in testingL - PythonAffects code written in PythonL - SQLAffects code written in sqlS - ModerateHas a moderate impact on security

Type

Projects

Status

In Development

Relationships

None yet

Development

No branches or pull requests

Issue actions