Skip to content

Add support for model permissions#527

Open
Retr0-XD wants to merge 1 commit intoHealthlane-Technologies:mainfrom
Retr0-XD:model
Open

Add support for model permissions#527
Retr0-XD wants to merge 1 commit intoHealthlane-Technologies:mainfrom
Retr0-XD:model

Conversation

@Retr0-XD
Copy link

@Retr0-XD Retr0-XD commented Nov 9, 2025

Enhance the permission framework by introducing support for model permissions. This update allows for both explicit 'model' type entries and permissive entries that only include the model name, ensuring backward compatibility with existing policies. The has_perm method now checks for model permissions, and the get_model_perms method has been updated accordingly.

Fixes #185

Copy link

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well structured code, especially the separation of concerns

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model Permission

2 participants