corrected addRole function to be able to change the operationbased status of existing roles