apply rights to setRight