fixed permissions saving for role update and create