code: public static boolean isAllowed(ODocument doc, OrientPermission... permissions)
  	{
  		if(!isAllowed(doc.getSchemaClass(), permissions)) return false;
  		for (OrientPermission orientPermission : permissions) {
  			ORestrictedOperation allowOperation = MAPPING_FOR_HACK.get(orientPermission);
  			if(allowOperation!=null)
  			{
  				if(!AccessToIsAllowedInRestrictedAccessHook.INSTANCE.isAllowed(doc, allowOperation, false)) return false;
  			}
  		}
  		return true;
  	}
docs: Check that all required permissions present for specified {@link ODocument}
  @param doc {@link ODocument} to check security rights for
  @param permissions {@link OrientPermission}s to check
  @return true if all permissions are allowable