code: public boolean hasPermissionsForMassEdit(CmsObject cms, String siteRoot) {
  
          String originalSiteRoot = cms.getRequestContext().getSiteRoot();
          try {
              cms.getRequestContext().setSiteRoot(siteRoot);
              return OpenCms.getRoleManager().hasRoleForResource(cms, CmsRole.ADMINISTRATOR, "/");
          } finally {
              cms.getRequestContext().setSiteRoot(originalSiteRoot);
          }
  
      }
docs: Checks whether the current user has permissions for mass editing the alias table.<p>
  
  @param cms the current CMS context
  @param siteRoot the site root to check
  @return true if the user from the CMS context is allowed to mass edit the alias table