When the shared LLM is selected in the profile manager, permission error thrown,
Why
There is precedence order for determining permissions in a ViewSet .
Irrespective of attaching permission in method level, It was getting overridden from the get_permissions method
How
Added conditons to get_permissions method to include the actions
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Added new permmision class for this check, which validates the org level check as well
Database Migrations
Env Config
Relevant Docs
-
Related Issues or PRs
-
Dependencies Versions
-
Notes on Testing
-
Screenshots
Shared LLM
When shared LLM is selected
When org level LLM is selected
Checklist
I have read and understood the [Contribution Guidelines]().
What
Why
get_permissions
methodHow
get_permissions
method to include the actionsCan this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
Database Migrations
Env Config
Relevant Docs
-
Related Issues or PRs
-
Dependencies Versions
-
Notes on Testing
-
Screenshots
Shared LLM
When shared LLM is selected
When org level LLM is selected
Checklist
I have read and understood the [Contribution Guidelines]().