Remove duplicate code by extend Resource pages
Hide Duplicate buttons from Resource panel when user don't have permissions

* origin/pr/12188:
  Remove duplicate code by extend Resource pages
Hide Duplicate buttons from Resource panel when user don't have permissions

* origin/master:
  Remove duplicate code by extend Resource pages