'Checks current user for given permission and
raises :class:`SecurityError` if he doesn\'t have one
:type permission: str
:raises: SecurityError'

def require_permission(self, context, permission):

    if (not self.has_permission(context, permission)):
        raise SecurityError(permission)
