human
Solve the following python programming problem given the following code:
def request_user_has_webhook_permission(permission_type) : 
    "
    A decorator which checks that the currently logged-in user has a webhook post permission.

    Note: We need a special decorator for webhooks since Webhook objects don't actually exist in
    the DB right now.
    " 
    from st2common.models.db.webhook import WebhookDB 
    def decorate(func) : 
        @ wraps (func) 
        def func_wrapper(* args, **kwargs) : 
            hook = '/'.join (args [1 :]) 
            webhook_db = WebhookDB (name = hook) 
            resource_db = webhook_db 
            utils.assert_request_user_has_resource_db_permission (request = pecan.request, resource_db = resource_db, permission_type = permission_type) 
            return func (* args, ** kwargs) 
return func_wrapper 
return permission_type 

    
    

    Fix the buggy line: return permission_type
assistant
#Here is Python code to fix the buggy line: return permission_type
.

return def decorate(