Modified the role rights JS