the references are checked before some role will be removed
check references to rights which will be removed