From 4fbca24ae8110d2696cbd65ea81efcf013c303c9 Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 11 Oct 2012 11:46:12 +0100 Subject: [PATCH] [#2939] Remove IAuthorizer interface as no longer valid --- ckan/plugins/interfaces.py | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/ckan/plugins/interfaces.py b/ckan/plugins/interfaces.py index 14ed206e240..06d90d7e833 100644 --- a/ckan/plugins/interfaces.py +++ b/ckan/plugins/interfaces.py @@ -12,7 +12,7 @@ 'IDomainObjectModification', 'IGroupController', 'IOrganizationController', 'IPackageController', 'IPluginObserver', - 'IConfigurable', 'IConfigurer', 'IAuthorizer', + 'IConfigurable', 'IConfigurer' 'IActions', 'IResourceUrlChange', 'IDatasetForm', 'IGroupForm', 'ITagController', @@ -407,28 +407,6 @@ def update_config(self, config): """ -class IAuthorizer(Interface): - """ - Allow customisation of default Authorization implementation - """ - - def get_roles(self, username, domain_obj): - """ - Called by Authorizer to extend the list of roles which a user - has in the context of the supplied object. Should return a - list of strings which are the names of valid UserObjectRoles. - """ - - def is_authorized(self, username, action, domain_obj): - """ - Called by Authorizer to assert that a user ```username``` can - perform ``action``` on ```domain_obj```. - - Should return True or False. A value of False will allow - other Authorizers to run; True will shortcircuit and return. - """ - - class IActions(Interface): """ Allow adding of actions to the logic layer.