Edit socialist law (6)
I believe the answer is:
redact
'edit' is the definition.
('redact' can be a synonym of 'edit')
'socialist law' is the wordplay.
'socialist' becomes 'red' (red is a kind of socialist).
'law' becomes 'act' (I've seen this before).
'red'+'act'='REDACT'
(Other definitions for redact that I've seen before include "Traced badly to edit" , "Prepare for publication" , "Prepare to publish" , "Censor part of a text for security reasons" , "Edit and censor" .)