[#50560205] check the user permissions before displaying edit/add
buttons