Add permissions classes to codemanagement api