Skip to content

Overriding datastore authorization system #3679

@ggcatu

Description

@ggcatu

Hello guys,

I've been looking through and found I can override ckan authorization system with a plugin that implements IAuthFunctions and just return the new fuction that I want.

But, as Datastore is already a plugin, how should I proceed in order to modify it s behaviour ?
Of course, I don't want to directly modify the Datastore functions but instead write a plugin.

In the examples, you show how to implement IDatastoreBackend but I want to override

image

Edit:

Actually I just found this:

https://github.com/ckan/ckan/blob/master/ckan/authz.py#L74

image

Seems like having 2 plugins override the same auth function will raise an error.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions