#JC-1533 Branch Edit Permission dialog: added unit tests and comments