code: public boolean hasPermissions(CmsResource resource, CmsPermissionSet requiredPermissions) throws CmsException {
  
          return m_securityManager.hasPermissions(
              m_context,
              resource,
              requiredPermissions,
              true,
              CmsResourceFilter.ALL).isAllowed();
      }
docs: Checks if the current user has required permissions to access a given resource.<p>
  
  @param resource the resource to check the permissions for
  @param requiredPermissions the set of permissions to check for
  
  @return <code>true</code> if the required permissions are satisfied
  
  @throws CmsException if something goes wrong