Fix the display of "Commit and approve button" according to permissions