Kajona\System\System\Rights::copyPermissions

Copies permissions from one record to another record.

Please be aware, that permissions are only copied in case the source-record has custom permissions. If the source record inherits permissions, the permissions won't be copied to the target record.