We discussed socialism as allowed by law.
A learner on ELL asked whether it is “socialism or the discussion itself” which is allowed by law. I responded that the phrase could only be understood as involving “legally allowed discussion” if “set off with a comma (or expressed with corresponding comma-intonation in speech) or moved to an earlier position”;
without a comma, as allowed by law is understood to be a restrictive modifier on socialism: what we discussed might be expressed as “legally allowed socialism”.
I think that absent some contrary context I was substantially correct. On consideration, however, another angle on this occurs to me: that the meaning of the as clause does in a sense ‘overflow’ onto the verb: it is not merely socialism which is restricted to a specific aspect of that topic but the discussion of it as well.
I was in part prompted to this reflection by another question, raised first on ELL and subsequently in somewhat different form on Linguistics: Do predicative adjuncts modify nouns or verbs. The very cogent answer provided may not be directly relevant but it is at least suggestive.
How do we parse as clauses like these?
We discussed socialism as allowed by law.
As written, the sentence implies that it is socialism which is allowed by law.
ADDED:
That is, supposing that it is given that we are discussing socialism only insofar as socialism is allowed by law and not as it is in other contexts, does not that also imply that discuss as well as socialism is modified by the clause as allowed by law? And if it is given that it a sentence has certain implications only insofar as the sentence is treated as a written text and not under other categories, does not that also imply that implies as well as sentence is modified by as written?
And does it make any difference if we write
We discussed socialism as it is allowed by law.
As it is written, the sentence implies that it is socialism which is allowed by law.