Skip to content

Commit

Permalink
[#2939] Remove IAuthorizer interface as no longer valid
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 11, 2012
1 parent 4acb856 commit 4fbca24
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions ckan/plugins/interfaces.py
Expand Up @@ -12,7 +12,7 @@
'IDomainObjectModification', 'IGroupController',
'IOrganizationController',
'IPackageController', 'IPluginObserver',
'IConfigurable', 'IConfigurer', 'IAuthorizer',
'IConfigurable', 'IConfigurer'
'IActions', 'IResourceUrlChange', 'IDatasetForm',
'IGroupForm',
'ITagController',
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4fbca24

Please sign in to comment.