(context, perm)
return {"url": None}
Renders a html link to the delete view of the given permission. Returns
    no content if the request-user has no permission to delete foreign
    permissions.
Renders a html link to the delete view of the given permission. Returns
    no content if the request-user has no permission to delete foreign
    permissions.
Renders a html link to the delete view of the given permission . Returns no content if the request - user has no permission to delete foreign permissions .
def permission_delete_link(context, perm):
    """
    Renders a html link to the delete view of the given permission. Returns
    no content if the request-user has no permission to delete foreign
    permissions.
    """
    user = context["request"].user
    if user.is_authenticated:
        if (
            user.has_perm("authority.delete_foreign_permissions")
            or user.pk == perm.creator.pk
        ):
            return base_link(context, perm, "authority-delete-permission")
    return {"url": None}
def permission_delete_link ( context , perm ) : user = context [ "request" ] . user if user . is_authenticated : if ( user . has_perm ( "authority.delete_foreign_permissions" ) or user . pk == perm . creator . pk ) : return base_link ( context , perm , "authority-delete-permission" ) return { "url" : None }