Remove unused variable $newRights

It was previously used to generate the log entry, but that was changed at
some point, leaving this behind.

Change-Id: I1b8e8d3de490cc00212583275c3a5c2460b4accf