~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/rest.py

  • Committer: David Coles
  • Date: 2010-02-17 04:17:42 UTC
  • Revision ID: coles.david@gmail.com-20100217041742-w7ggjrvku1fdv04k
docs: Example SSL configuration

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        if not hasattr(op, '_rest_api_permission'):
56
56
            raise Unauthorized()
57
57
 
58
 
        if op._rest_api_permission not in self.get_permissions(req.user):
 
58
        if (op._rest_api_permission not in
 
59
            self.get_permissions(req.user, req.config)):
59
60
            raise Unauthorized()
60
61
    
61
62
    def convert_bool(self, value):